diff --git a/packages/google-shopping-merchant-accounts/.OwlBot.yaml b/packages/google-shopping-merchant-accounts/.OwlBot.yaml
new file mode 100644
index 00000000000..7cafaa0b6cc
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.OwlBot.yaml
@@ -0,0 +1,19 @@
+# Copyright 2022 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+deep-copy-regex:
+ - source: /google/shopping/merchant/accounts/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-shopping-merchant-accounts/$1
+
+api-name: merchantapi
\ No newline at end of file
diff --git a/packages/google-shopping-merchant-accounts/.eslintignore b/packages/google-shopping-merchant-accounts/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-shopping-merchant-accounts/.eslintrc.json b/packages/google-shopping-merchant-accounts/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-shopping-merchant-accounts/.gitattributes b/packages/google-shopping-merchant-accounts/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.gitattributes
@@ -0,0 +1,4 @@
+*.ts text eol=lf
+*.js text eol=lf
+protos/* linguist-generated
+**/api-extractor.json linguist-language=JSON-with-Comments
diff --git a/packages/google-shopping-merchant-accounts/.gitignore b/packages/google-shopping-merchant-accounts/.gitignore
new file mode 100644
index 00000000000..d4f03a0df2e
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-shopping-merchant-accounts/.jsdoc.js b/packages/google-shopping-merchant-accounts/.jsdoc.js
new file mode 100644
index 00000000000..4be7d1c0e84
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2024 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-shopping/accounts',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-shopping-merchant-accounts/.mocharc.js b/packages/google-shopping-merchant-accounts/.mocharc.js
new file mode 100644
index 00000000000..7e843ab5a75
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-shopping-merchant-accounts/.nycrc b/packages/google-shopping-merchant-accounts/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
diff --git a/packages/google-shopping-merchant-accounts/.prettierignore b/packages/google-shopping-merchant-accounts/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-shopping-merchant-accounts/.prettierrc.js b/packages/google-shopping-merchant-accounts/.prettierrc.js
new file mode 100644
index 00000000000..120c6aa3e6e
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-shopping-merchant-accounts/.repo-metadata.json b/packages/google-shopping-merchant-accounts/.repo-metadata.json
new file mode 100644
index 00000000000..edf8f0b5517
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "merchantapi",
+ "name_pretty": "Merchant API",
+ "product_documentation": "https://developers.google.com/merchant/api",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/merchantapi/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "preview",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-shopping/accounts",
+ "api_id": "merchantapi.googleapis.com",
+ "default_version": "v1beta",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO",
+ "api_shortname": "merchantapi"
+}
+
diff --git a/packages/google-shopping-merchant-accounts/CODE_OF_CONDUCT.md b/packages/google-shopping-merchant-accounts/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/CODE_OF_CONDUCT.md
@@ -0,0 +1,94 @@
+
+# Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, gender identity and expression, level of
+experience, education, socio-economic status, nationality, personal appearance,
+race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, or to ban temporarily or permanently any
+contributor for other behaviors that they deem inappropriate, threatening,
+offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+This Code of Conduct also applies outside the project spaces when the Project
+Steward has a reasonable belief that an individual's behavior may have a
+negative impact on the project or its community.
+
+## Conflict Resolution
+
+We do not believe that all conflict is bad; healthy debate and disagreement
+often yield positive results. However, it is never okay to be disrespectful or
+to engage in behavior that violates the project’s code of conduct.
+
+If you see someone violating the code of conduct, you are encouraged to address
+the behavior directly with those involved. Many issues can be resolved quickly
+and easily, and this gives people more control over the outcome of their
+dispute. If you are unable to resolve the matter for any reason, or if the
+behavior is threatening or harassing, report it. We are dedicated to providing
+an environment where participants feel welcome and safe.
+
+Reports should be directed to *googleapis-stewards@google.com*, the
+Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
+receive and address reported violations of the code of conduct. They will then
+work with a committee consisting of representatives from the Open Source
+Programs Office and the Google Open Source Strategy team. If for any reason you
+are uncomfortable reaching out to the Project Steward, please email
+opensource@google.com.
+
+We will investigate every complaint, but you may not receive a direct response.
+We will use our discretion in determining when and how to follow up on reported
+incidents, which may range from not taking action to permanent expulsion from
+the project and project-sponsored spaces. We will notify the accused of the
+report and provide them an opportunity to discuss it before any action is taken.
+The identity of the reporter will be omitted from the details of the report
+supplied to the accused. In potentially harmful situations, such as ongoing
+harassment or threats to anyone's safety, we may take action without notice.
+
+## Attribution
+
+This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
+available at
+https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
\ No newline at end of file
diff --git a/packages/google-shopping-merchant-accounts/CONTRIBUTING.md b/packages/google-shopping-merchant-accounts/CONTRIBUTING.md
new file mode 100644
index 00000000000..b50cca7820e
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/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 Merchant API API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+
+## Running the tests
+
+1. [Prepare your environment for Node.js setup][setup].
+
+1. Install dependencies:
+
+ npm install
+
+1. Run the tests:
+
+ # Run unit tests.
+ npm test
+
+ # Run sample integration tests.
+ npm run samples-test
+
+ # Run all system tests.
+ npm run system-test
+
+1. Lint (and maybe fix) any changes:
+
+ npm run fix
+
+[setup]: https://cloud.google.com/nodejs/docs/setup
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=merchantapi.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-shopping-merchant-accounts/LICENSE b/packages/google-shopping-merchant-accounts/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/packages/google-shopping-merchant-accounts/README.md b/packages/google-shopping-merchant-accounts/README.md
new file mode 100644
index 00000000000..8b3e4838b13
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/README.md
@@ -0,0 +1,229 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Merchant API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-accounts)
+
+[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
+[![npm version](https://img.shields.io/npm/v/@google-shopping/accounts.svg)](https://www.npmjs.org/package/@google-shopping/accounts)
+
+
+
+
+Merchant API client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-accounts/CHANGELOG.md).
+
+* [Merchant API Node.js Client API Reference][client-docs]
+* [Merchant API Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-shopping-merchant-accounts](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-accounts)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+ * [Using the client library](#using-the-client-library)
+* [Samples](#samples)
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Merchant API API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+### Installing the client library
+
+```bash
+npm install @google-shopping/accounts
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * This snippet has been automatically generated and should be regarded as a code template only.
+ * It will require modifications to work.
+ * It may require correct/in-range values for request initialization.
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+/**
+ * Required. The account to list regions for.
+ * Format: `accounts/{account}`
+ */
+// const parent = 'accounts/abc123'
+/**
+ * Optional. The maximum number of regions to return. The service may return
+ * fewer than this value.
+ * If unspecified, at most 50 regions will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ */
+// const pageSize = 1234
+/**
+ * Optional. A page token, received from a previous `ListRegions` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListRegions` must
+ * match the call that provided the page token.
+ */
+// const pageToken = 'abc123'
+
+// Imports the Accounts library
+const {RegionsServiceClient} = require('@google-shopping/accounts').v1beta;
+
+// Instantiates a client
+const accountsClient = new RegionsServiceClient();
+
+async function callListRegions() {
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ const iterable = accountsClient.listRegionsAsync(request);
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListRegions();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-accounts/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Account_issue_service.list_account_issues | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_issue_service.list_account_issues.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_issue_service.list_account_issues.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Account_tax_service.get_account_tax | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_tax_service.get_account_tax.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_tax_service.get_account_tax.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Account_tax_service.list_account_tax | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_tax_service.list_account_tax.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_tax_service.list_account_tax.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Account_tax_service.update_account_tax | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_tax_service.update_account_tax.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/account_tax_service.update_account_tax.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Accounts_service.create_and_configure_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.create_and_configure_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.create_and_configure_account.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Accounts_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.delete_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.delete_account.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Accounts_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.get_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.get_account.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Accounts_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.list_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.list_accounts.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Accounts_service.list_sub_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.list_sub_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.list_sub_accounts.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Accounts_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.update_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/accounts_service.update_account.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Business_identity_service.get_business_identity | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_identity_service.get_business_identity.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_identity_service.get_business_identity.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Business_identity_service.update_business_identity | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_identity_service.update_business_identity.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_identity_service.update_business_identity.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Business_info_service.get_business_info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_info_service.get_business_info.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_info_service.get_business_info.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Business_info_service.update_business_info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_info_service.update_business_info.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/business_info_service.update_business_info.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Email_preferences_service.get_email_preferences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/email_preferences_service.get_email_preferences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/email_preferences_service.get_email_preferences.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Email_preferences_service.update_email_preferences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/email_preferences_service.update_email_preferences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/email_preferences_service.update_email_preferences.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Homepage_service.claim_homepage | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.claim_homepage.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.claim_homepage.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Homepage_service.get_homepage | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.get_homepage.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.get_homepage.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Homepage_service.unclaim_homepage | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.unclaim_homepage.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.unclaim_homepage.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Homepage_service.update_homepage | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.update_homepage.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/homepage_service.update_homepage.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Online_return_policy_service.get_online_return_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/online_return_policy_service.get_online_return_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/online_return_policy_service.get_online_return_policy.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Online_return_policy_service.list_online_return_policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/online_return_policy_service.list_online_return_policies.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/online_return_policy_service.list_online_return_policies.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Programs_service.disable_program | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.disable_program.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.disable_program.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Programs_service.enable_program | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.enable_program.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.enable_program.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Programs_service.get_program | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.get_program.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.get_program.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Programs_service.list_programs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.list_programs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/programs_service.list_programs.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Regions_service.create_region | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.create_region.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.create_region.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Regions_service.delete_region | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.delete_region.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.delete_region.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Regions_service.get_region | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.get_region.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.get_region.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Regions_service.list_regions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.list_regions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.list_regions.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Regions_service.update_region | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.update_region.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/regions_service.update_region.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Shipping_settings_service.get_shipping_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/shipping_settings_service.get_shipping_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/shipping_settings_service.get_shipping_settings.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Shipping_settings_service.insert_shipping_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/shipping_settings_service.insert_shipping_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/shipping_settings_service.insert_shipping_settings.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Terms_of_service_agreement_state_service.get_terms_of_service_agreement_state | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_agreement_state_service.get_terms_of_service_agreement_state.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_agreement_state_service.get_terms_of_service_agreement_state.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Terms_of_service_agreement_state_service.retrieve_for_application_terms_of_service_agreement_state | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_agreement_state_service.retrieve_for_application_terms_of_service_agreement_state.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_agreement_state_service.retrieve_for_application_terms_of_service_agreement_state.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Terms_of_service_service.accept_terms_of_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_service.accept_terms_of_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_service.accept_terms_of_service.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Terms_of_service_service.get_terms_of_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_service.get_terms_of_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_service.get_terms_of_service.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Terms_of_service_service.retrieve_latest_terms_of_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_service.retrieve_latest_terms_of_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/terms_of_service_service.retrieve_latest_terms_of_service.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| User_service.create_user | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.create_user.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.create_user.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| User_service.delete_user | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.delete_user.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.delete_user.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| User_service.get_user | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.get_user.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.get_user.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| User_service.list_users | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.list_users.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.list_users.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| User_service.update_user | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.update_user.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/generated/v1beta/user_service.update_user.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-shopping-merchant-accounts/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-shopping-merchant-accounts/samples/quickstart.js,packages/google-shopping-merchant-accounts/samples/README.md) |
+
+
+
+The [Merchant API Node.js Client API Reference][client-docs] documentation
+also contains samples.
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-shopping/accounts@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+
+
+
+
+This library is considered to be in **preview**. This means it is still a
+work-in-progress and under active development. Any release is subject to
+backwards-incompatible changes at any time.
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/merchantapi/latest
+[product-docs]: https://developers.google.com/merchant/api
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=merchantapi.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-shopping-merchant-accounts/package.json b/packages/google-shopping-merchant-accounts/package.json
new file mode 100644
index 00000000000..fd505ba92be
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/package.json
@@ -0,0 +1,70 @@
+{
+ "name": "@google-shopping/accounts",
+ "version": "0.0.0",
+ "description": "Merchant API client for Node.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/googleapis/google-cloud-node.git",
+ "directory": "packages/google-shopping-merchant-accounts"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-accounts",
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google merchantapi",
+ "merchantapi",
+ "Merchant API"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "postpack": "minifyProtoJson",
+ "prepare": "npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^4.0.3"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^20.4.5",
+ "@types/sinon": "^17.0.0",
+ "c8": "^9.0.0",
+ "gapic-tools": "^0.4.0",
+ "gts": "^5.0.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^3.0.0",
+ "jsdoc-region-tag": "^3.0.0",
+ "linkinator": "4.1.2",
+ "long": "^5.2.3",
+ "mocha": "^9.2.2",
+ "pack-n-play": "^2.0.0",
+ "sinon": "^18.0.0",
+ "typescript": "^5.1.6"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accessright.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accessright.proto
new file mode 100644
index 00000000000..40d972f5cc2
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accessright.proto
@@ -0,0 +1,37 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "AccessRightProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// The access right.
+enum AccessRight {
+ // Default value. This value is unused.
+ ACCESS_RIGHT_UNSPECIFIED = 0;
+
+ // Standard access rights.
+ STANDARD = 1;
+
+ // Admin access rights.
+ ADMIN = 2;
+
+ // Users with this right have access to performance and insights.
+ PERFORMANCE_REPORTING = 3;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/account_tax.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/account_tax.proto
new file mode 100644
index 00000000000..440ddcba346
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/account_tax.proto
@@ -0,0 +1,143 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+import "google/shopping/merchant/accounts/v1beta/tax_rule.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "AccountTaxProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Manages account level tax setting data.
+//
+// This API defines the following resource model:
+//
+// - [AccountTax][google.shopping.merchant.accounts.v1main.AccountTax]
+service AccountTaxService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Returns the tax rules that match the conditions of GetAccountTaxRequest
+ rpc GetAccountTax(GetAccountTaxRequest) returns (AccountTax) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/accounttax/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists the tax settings of the sub-accounts only in your
+ // Merchant Center account.
+ // This method can only be called on a multi-client account, otherwise it'll
+ // return an error.
+ rpc ListAccountTax(ListAccountTaxRequest) returns (ListAccountTaxResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{parent=accounts/*}/accounttax"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates the tax settings of the account.
+ rpc UpdateAccountTax(UpdateAccountTaxRequest) returns (AccountTax) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{account_tax.name=accounts/*/accounttax/*}"
+ body: "account_tax"
+ };
+ option (google.api.method_signature) = "account_tax,update_mask";
+ option (google.api.method_signature) = "account_tax";
+ }
+}
+
+// The tax settings of a merchant account. All methods require the admin role.
+message AccountTax {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/AccountTax"
+ pattern: "accounts/{account}/accounttax/{tax}"
+ plural: "accountTaxes"
+ singular: "accountTax"
+ };
+
+ // Identifier. The name of the tax setting.
+ // Format:
+ // "{account_tax.name=accounts/{account}}"
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The ID of the account to which these account tax settings
+ // belong.
+ int64 account = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Tax rules. "Define the tax rules in each region.
+ // No tax will be presented if a region has no rule."
+ repeated TaxRule tax_rules = 3;
+}
+
+// Request to get tax settings
+message GetAccountTaxRequest {
+ // Required. The name from which tax settings will be retrieved
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/AccountTax"
+ }
+ ];
+}
+
+// Request to update the tax settings
+message UpdateAccountTaxRequest {
+ // Required. The tax setting that will be updated
+ AccountTax account_tax = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request to list all sub-account tax settings only for the requesting merchant
+// This method can only be called on a multi-client account, otherwise it'll
+// return an error.
+message ListAccountTaxRequest {
+ // Required. The parent, which owns this collection of account tax.
+ // Format: accounts/{account}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "merchantapi.googleapis.com/AccountTax"
+ }
+ ];
+
+ // The maximum number of tax settings to return in the response, used for
+ // paging.
+ int32 page_size = 2;
+
+ // The token returned by the previous request.
+ string page_token = 3;
+}
+
+// Response to account tax list request
+// This method can only be called on a multi-client account, otherwise it'll
+// return an error.
+message ListAccountTaxResponse {
+ // Page of accounttax settings
+ repeated AccountTax account_taxes = 1;
+
+ // The token for the retrieval of the next page of account tax settings.
+ string next_page_token = 2;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accountissue.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accountissue.proto
new file mode 100644
index 00000000000..a6329d76ed2
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accountissue.proto
@@ -0,0 +1,156 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/shopping/type/types.proto";
+import "google/type/datetime.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "AccountIssueProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support `AccountIssueService` API.
+service AccountIssueService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Lists all account issues of a Merchant Center account.
+ rpc ListAccountIssues(ListAccountIssuesRequest)
+ returns (ListAccountIssuesResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{parent=accounts/*}/issues"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// An
+// [`AccountIssue`](https://support.google.com/merchants/answer/12153802?sjid=17798438912526418908-EU#account).
+message AccountIssue {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/AccountIssue"
+ pattern: "accounts/{account}/issues/{issue}"
+ plural: "accountIssues"
+ singular: "accountIssue"
+ };
+
+ // The impact of the issue on a destination.
+ message ImpactedDestination {
+ // The impact of the issue on a region.
+ message Impact {
+ // The [CLDR region code](https://cldr.unicode.org/) where this issue
+ // applies.
+ string region_code = 1;
+
+ // The severity of the issue on the destination and region.
+ Severity severity = 2;
+ }
+
+ // The impacted reporting context.
+ optional google.shopping.type.ReportingContext.ReportingContextEnum
+ reporting_context = 1;
+
+ // The (negative) impact for various regions on the given destination.
+ repeated Impact impacts = 2;
+ }
+
+ // All possible issue severities.
+ enum Severity {
+ // The severity is unknown.
+ SEVERITY_UNSPECIFIED = 0;
+
+ // The issue causes offers to not serve.
+ CRITICAL = 1;
+
+ // The issue might affect offers (in the future) or might be an
+ // indicator of issues with offers.
+ ERROR = 2;
+
+ // The issue is a suggestion for improvement.
+ SUGGESTION = 3;
+ }
+
+ // Identifier. The resource name of the account issue.
+ // Format: `accounts/{account}/issues/{id}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // The localized title of the issue.
+ string title = 2;
+
+ // The overall severity of the issue.
+ Severity severity = 3;
+
+ // The impact this issue has on various destinations.
+ repeated ImpactedDestination impacted_destinations = 4;
+
+ // Further localized details about the issue.
+ string detail = 5;
+
+ // Link to Merchant Center Help Center providing further information about the
+ // issue and how to fix it.
+ string documentation_uri = 6;
+}
+
+// Request message for the `ListAccountIssues` method.
+message ListAccountIssuesRequest {
+ // Required. The parent, which owns this collection of issues.
+ // Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+
+ // Optional. The maximum number of issues to return. The service may return
+ // fewer than this value. If unspecified, at most 50 users will be returned.
+ // The maximum value is 100; values above 100 will be coerced to 100
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListAccountIssues` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListAccountIssues` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The issues in the response will have human-readable fields in the
+ // given language. The format is [BCP-47](https://tools.ietf.org/html/bcp47),
+ // such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be
+ // used.
+ string language_code = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
+ // localize times in human-readable fields. For example 'America/Los_Angeles'.
+ // If not set, 'America/Los_Angeles' will be used.
+ google.type.TimeZone time_zone = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for the `ListAccountIssues` method.
+message ListAccountIssuesResponse {
+ // The issues from the specified account.
+ repeated AccountIssue account_issues = 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;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accounts.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accounts.proto
new file mode 100644
index 00000000000..c223bcdfeaf
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/accounts.proto
@@ -0,0 +1,297 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/shopping/merchant/accounts/v1beta/user.proto";
+import "google/type/datetime.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "AccountsProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support Accounts API.
+service AccountsService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves an account from your Merchant Center account.
+ // After inserting, updating, or deleting an account, it may take several
+ // minutes before changes take effect.
+ rpc GetAccount(GetAccountRequest) returns (Account) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a standalone Merchant Center account with additional configuration.
+ // Adds the user that makes the request as an admin for the new account.
+ rpc CreateAndConfigureAccount(CreateAndConfigureAccountRequest)
+ returns (Account) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/accounts:createAndConfigure"
+ body: "*"
+ };
+ }
+
+ // Deletes the specified account regardless of its type: standalone, MCA or
+ // sub-account. Deleting an MCA leads to the deletion of all of its
+ // sub-accounts. Executing this method requires admin access.
+ rpc DeleteAccount(DeleteAccountRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/accounts/v1beta/{name=accounts/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates an account regardless of its type: standalone, MCA or sub-account.
+ // Executing this method requires admin access.
+ rpc UpdateAccount(UpdateAccountRequest) returns (Account) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{account.name=accounts/*}"
+ body: "account"
+ };
+ option (google.api.method_signature) = "account,update_mask";
+ }
+
+ // Lists accounts accessible to the calling user and matching the
+ // constraints of the request such as page size or filters.
+ // This is not just listing the sub-accounts of an MCA, but all accounts the
+ // calling user has access to including other MCAs, linked accounts,
+ // standalone accounts and so on.
+ rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/accounts"
+ };
+ }
+
+ // List all sub-accounts for a given multi client account. This is a
+ // convenience wrapper for the more powerful `ListAccounts` method. This
+ // method will produce the same results as calling `ListsAccounts` with the
+ // following filter:
+ // `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))`
+ rpc ListSubAccounts(ListSubAccountsRequest)
+ returns (ListSubAccountsResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{provider=accounts/*}:listSubaccounts"
+ };
+ option (google.api.method_signature) = "provider";
+ }
+}
+
+// An account.
+message Account {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/Account"
+ pattern: "accounts/{account}"
+ };
+
+ // Identifier. The resource name of the account.
+ // Format: `accounts/{account}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The ID of the account.
+ int64 account_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. A human-readable name of the account. See
+ // [store name](https://support.google.com/merchants/answer/160556) and
+ // [business name](https://support.google.com/merchants/answer/12159159) for
+ // more information.
+ string account_name = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Whether this account contains adult content.
+ bool adult_content = 4;
+
+ // Output only. Whether this is a test account.
+ bool test_account = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. The time zone of the account.
+ //
+ // On writes, `time_zone` sets both the `reporting_time_zone` and the
+ // `display_time_zone`.
+ //
+ // For reads, `time_zone` always returns the `display_time_zone`. If
+ // `display_time_zone` doesn't exist for your account, `time_zone` is empty.
+ google.type.TimeZone time_zone = 6 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The account's [BCP-47 language
+ // code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
+ string language_code = 7 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the `GetAccount` method.
+message GetAccountRequest {
+ // Required. The name of the account to retrieve.
+ // Format: `accounts/{account}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+}
+
+// Request message for the `CreateAndConfigureAccount` method.
+message CreateAndConfigureAccountRequest {
+ // Reference to a Terms of Service resource.
+ message AcceptTermsOfService {
+ // Required. The resource name of the terms of service version.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/TermsOfService"
+ }
+ ];
+
+ // Required. Region code as defined by [CLDR](https://cldr.unicode.org/).
+ // This is either a country when the ToS applies specifically to that
+ // country or `001` when it applies globally.
+ string region_code = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Additional instructions to add account services during creation of the
+ // account.
+ message AddAccountService {
+ // Currently only supports
+ // [Multi-client](https://support.google.com/merchants/answer/188487)
+ // parent account type.
+ oneof service_type {
+ // The provider is an aggregator for the account.
+ google.protobuf.Empty account_aggregation = 2;
+ }
+
+ // Optional. The provider of the service.
+ // Format: `accounts/{account}`
+ optional string provider = 1 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+ }
+
+ // Required. The account to be created.
+ Account account = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Users to be added to the account.
+ repeated CreateUserRequest users = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The Terms of Service (ToS) to be accepted immediately upon
+ // account creation.
+ optional AcceptTermsOfService accept_terms_of_service = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If specified, an account service between the account to be
+ // created and the provider account is initialized as part of the
+ // creation.
+ repeated AddAccountService service = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for the `DeleteAccount` method.
+message DeleteAccountRequest {
+ // Required. The name of the account to delete.
+ // Format: `accounts/{account}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+}
+
+// Request message for the `UpdateAccount` method.
+message UpdateAccountRequest {
+ // Required. The new version of the account.
+ Account account = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of fields being updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the `ListAccounts` method.
+message ListAccountsRequest {
+ // Optional. The maximum number of accounts to return. The service may return
+ // fewer than this value. If unspecified, at most 250 accounts are returned.
+ // The maximum value is 500; values above 500 are coerced to 500.
+ int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListAccounts` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListAccounts` must match
+ // the call that provided the page token.
+ string page_token = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Returns only accounts that match the
+ // [filter](/merchant/api/guides/accounts/filter).
+ // For more details, see the
+ // [filter syntax reference](/merchant/api/guides/accounts/filter-syntax).
+ string filter = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for the `ListAccounts` method.
+message ListAccountsResponse {
+ // The accounts matching the `ListAccountsRequest`.
+ repeated Account accounts = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for the `ListSubAccounts` method.
+message ListSubAccountsRequest {
+ // Required. The parent account.
+ // Format: `accounts/{account}`
+ string provider = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+
+ // Optional. The maximum number of accounts to return. The service may return
+ // fewer than this value. If unspecified, at most 250 accounts are returned.
+ // The maximum value is 500; values above 500 are coerced to 500.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListAccounts` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListAccounts` must match
+ // the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for the `ListSubAccounts` method.
+message ListSubAccountsResponse {
+ // The accounts for which the given parent account is an aggregator.
+ repeated Account accounts = 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;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/businessidentity.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/businessidentity.proto
new file mode 100644
index 00000000000..c7f02c421b3
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/businessidentity.proto
@@ -0,0 +1,160 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "BusinessIdentityProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support [business
+// identity](https://support.google.com/merchants/answer/12564247) API.
+service BusinessIdentityService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves the business identity of an account.
+ rpc GetBusinessIdentity(GetBusinessIdentityRequest)
+ returns (BusinessIdentity) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/businessIdentity}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the business identity of an account. Executing this method requires
+ // admin access.
+ rpc UpdateBusinessIdentity(UpdateBusinessIdentityRequest)
+ returns (BusinessIdentity) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{business_identity.name=accounts/*/businessIdentity}"
+ body: "business_identity"
+ };
+ option (google.api.method_signature) = "business_identity,update_mask";
+ }
+}
+
+// Collection of information related to the [identity of a
+// business](https://support.google.com/merchants/answer/12564247).
+message BusinessIdentity {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/BusinessIdentity"
+ pattern: "accounts/{account}/businessIdentity"
+ plural: "businessIdentities"
+ singular: "businessIdentity"
+ };
+
+ // All information related to an identity attribute.
+ message IdentityAttribute {
+ // All possible settings regarding the declaration of an identity.
+ enum IdentityDeclaration {
+ // Default value indicating that no selection was made.
+ IDENTITY_DECLARATION_UNSPECIFIED = 0;
+
+ // Indicates that the account identifies with the attribute.
+ SELF_IDENTIFIES_AS = 1;
+
+ // Indicates that the account does not identify with the attribute.
+ DOES_NOT_SELF_IDENTIFY_AS = 2;
+ }
+
+ // Required. The declaration of identity for this attribute.
+ IdentityDeclaration identity_declaration = 1
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // All possible settings regarding promotions related to the business
+ // identity.
+ enum PromotionsConsent {
+ // Default value indicating that no selection was made.
+ PROMOTIONS_CONSENT_UNSPECIFIED = 0;
+
+ // Indicates that the account consented to having their business identity
+ // used for promotions.
+ PROMOTIONS_CONSENT_GIVEN = 1;
+
+ // Indicates that the account did not consent to having their business
+ // identity used for promotions.
+ PROMOTIONS_CONSENT_DENIED = 2;
+ }
+
+ // Identifier. The resource name of the business identity.
+ // Format: `accounts/{account}/businessIdentity`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. Whether the identity attributes may be used for promotions.
+ PromotionsConsent promotions_consent = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies whether the business identifies itself as being
+ // black-owned. This optional field will only be available for merchants with
+ // a business country set to `US`. It is also not applicable for marketplaces
+ // or marketplace sellers.
+ IdentityAttribute black_owned = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies whether the business identifies itself as being
+ // women-owned. This optional field will only be available for merchants with
+ // a business country set to `US`. It is also not applicable for marketplaces
+ // or marketplace sellers.
+ IdentityAttribute women_owned = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies whether the business identifies itself as being
+ // veteran-owned. This optional field will only be available for merchants
+ // with a business country set to `US`. It is also not applicable for
+ // marketplaces or marketplace sellers.
+ IdentityAttribute veteran_owned = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies whether the business identifies itself as being
+ // latino-owned. This optional field will only be available for merchants with
+ // a business country set to `US`. It is also not applicable for marketplaces
+ // or marketplace sellers.
+ IdentityAttribute latino_owned = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies whether the business identifies itself as a small
+ // business. This optional field will only be available for merchants with a
+ // business country set to `US`. It is also not applicable for marketplaces.
+ IdentityAttribute small_business = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for the `GetBusinessIdentity` method.
+message GetBusinessIdentityRequest {
+ // Required. The resource name of the business identity.
+ // Format: `accounts/{account}/businessIdentity`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/BusinessIdentity"
+ }
+ ];
+}
+
+// Request message for the `UpdateBusinessIdentity` method.
+message UpdateBusinessIdentityRequest {
+ // Required. The new version of the business identity.
+ BusinessIdentity business_identity = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of fields being updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/businessinfo.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/businessinfo.proto
new file mode 100644
index 00000000000..f2cfed816d6
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/businessinfo.proto
@@ -0,0 +1,108 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+import "google/shopping/merchant/accounts/v1beta/customerservice.proto";
+import "google/shopping/merchant/accounts/v1beta/phoneverificationstate.proto";
+import "google/type/phone_number.proto";
+import "google/type/postal_address.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "BusinessInfoProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support business info API.
+service BusinessInfoService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves the business info of an account.
+ rpc GetBusinessInfo(GetBusinessInfoRequest) returns (BusinessInfo) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/businessInfo}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the business info of an account. Executing this method requires
+ // admin access.
+ rpc UpdateBusinessInfo(UpdateBusinessInfoRequest) returns (BusinessInfo) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{business_info.name=accounts/*/businessInfo}"
+ body: "business_info"
+ };
+ option (google.api.method_signature) = "business_info,update_mask";
+ }
+}
+
+// Collection of information related to a business.
+message BusinessInfo {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/BusinessInfo"
+ pattern: "accounts/{account}/businessInfo"
+ plural: "businessInfos"
+ singular: "businessInfo"
+ };
+
+ // Identifier. The resource name of the business info.
+ // Format: `accounts/{account}/businessInfo`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. The address of the business.
+ optional google.type.PostalAddress address = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The phone number of the business.
+ optional google.type.PhoneNumber phone = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The phone verification state of the business.
+ optional PhoneVerificationState phone_verification_state = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The customer service of the business.
+ optional CustomerService customer_service = 5
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for the `GetBusinessInfo` method.
+message GetBusinessInfoRequest {
+ // Required. The resource name of the business info.
+ // Format: `accounts/{account}/businessInfo`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/BusinessInfo"
+ }
+ ];
+}
+
+// Request message for the `UpdateBusinessInfo` method.
+message UpdateBusinessInfoRequest {
+ // Required. The new version of the business info.
+ BusinessInfo business_info = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of fields being updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/customerservice.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/customerservice.proto
new file mode 100644
index 00000000000..a9cd9f42c25
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/customerservice.proto
@@ -0,0 +1,38 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/field_behavior.proto";
+import "google/type/phone_number.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "CustomerServiceProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Customer service information.
+message CustomerService {
+ // Optional. The URI where customer service may be found.
+ optional string uri = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The email address where customer service may be reached.
+ optional string email = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The phone number where customer service may be called.
+ optional google.type.PhoneNumber phone = 3
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/emailpreferences.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/emailpreferences.proto
new file mode 100644
index 00000000000..24bd0ab243d
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/emailpreferences.proto
@@ -0,0 +1,128 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "EmailPreferencesProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support the `EmailPreferences` API.
+//
+// This service only permits retrieving and updating email preferences for the
+// authenticated user.
+service EmailPreferencesService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Returns the email preferences for a Merchant Center account user.
+ //
+ // Use the name=accounts/*/users/me/emailPreferences alias to get preferences
+ // for the authenticated user.
+ rpc GetEmailPreferences(GetEmailPreferencesRequest)
+ returns (EmailPreferences) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/users/*/emailPreferences}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the email preferences for a Merchant Center account user. MCA users
+ // should specify the MCA account rather than a sub-account of the MCA.
+ //
+ // Preferences which are not explicitly selected in the update mask will not
+ // be updated.
+ //
+ // It is invalid for updates to specify an UNCONFIRMED opt-in status value.
+ //
+ // Use the name=accounts/*/users/me/emailPreferences alias to update
+ // preferences
+ // for the authenticated user.
+ rpc UpdateEmailPreferences(UpdateEmailPreferencesRequest)
+ returns (EmailPreferences) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{email_preferences.name=accounts/*/users/*/emailPreferences}"
+ body: "email_preferences"
+ };
+ option (google.api.method_signature) = "email_preferences,update_mask";
+ }
+}
+
+// The categories of notifications the user opted into / opted out of. The email
+// preferences do not include mandatory announcements as users can't opt out of
+// them.
+message EmailPreferences {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/EmailPreferences"
+ pattern: "accounts/{account}/users/{email}/emailPreferences"
+ plural: "emailPreferences"
+ singular: "emailPreferences"
+ };
+
+ // Opt in state of the email preference.
+ enum OptInState {
+ // Opt-in status is not specified.
+ OPT_IN_STATE_UNSPECIFIED = 0;
+
+ // User has opted out of receiving this type of email.
+ OPTED_OUT = 1;
+
+ // User has opted in to receiving this type of email.
+ OPTED_IN = 2;
+
+ // User has opted in to receiving this type of email and the confirmation
+ // email has been sent, but user has not yet confirmed the opt in (applies
+ // only to certain countries).
+ UNCONFIRMED = 3;
+ }
+
+ // Identifier. The name of the EmailPreferences. The endpoint is only
+ // supported for the authenticated user.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. Updates on new features, tips and best practices.
+ OptInState news_and_tips = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for GetEmailPreferences method.
+message GetEmailPreferencesRequest {
+ // Required. The name of the `EmailPreferences` resource.
+ // Format: `accounts/{account}/users/{email}/emailPreferences`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/EmailPreferences"
+ }
+ ];
+}
+
+// Request message for UpdateEmailPreferences method.
+message UpdateEmailPreferencesRequest {
+ // Required. Email Preferences to be updated.
+ EmailPreferences email_preferences = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of fields being updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/homepage.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/homepage.proto
new file mode 100644
index 00000000000..aedfa98cd62
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/homepage.proto
@@ -0,0 +1,147 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "HomepageProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support an API for a store's homepage.
+service HomepageService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves a store's homepage.
+ rpc GetHomepage(GetHomepageRequest) returns (Homepage) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/homepage}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates a store's homepage. Executing this method requires admin access.
+ rpc UpdateHomepage(UpdateHomepageRequest) returns (Homepage) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{homepage.name=accounts/*/homepage}"
+ body: "homepage"
+ };
+ option (google.api.method_signature) = "homepage,update_mask";
+ }
+
+ // Claims a store's homepage. Executing this method requires admin access.
+ //
+ // If the homepage is already claimed, this will recheck the
+ // verification (unless the merchant is exempted from claiming, which also
+ // exempts from verification) and return a successful response. If ownership
+ // can no longer be verified, it will return an error, but it won't clear the
+ // claim. In case of failure, a canonical error message will be returned:
+ // * PERMISSION_DENIED: user doesn't have the necessary permissions on this
+ // MC account;
+ // * FAILED_PRECONDITION:
+ // - The account is not a Merchant Center account;
+ // - MC account doesn't have a homepage;
+ // - claiming failed (in this case the error message will contain more
+ // details).
+ rpc ClaimHomepage(ClaimHomepageRequest) returns (Homepage) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/{name=accounts/*/homepage}:claim"
+ body: "*"
+ };
+ }
+
+ // Unclaims a store's homepage. Executing this method requires admin access.
+ rpc UnclaimHomepage(UnclaimHomepageRequest) returns (Homepage) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/{name=accounts/*/homepage}:unclaim"
+ body: "*"
+ };
+ }
+}
+
+// A store's homepage.
+message Homepage {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/Homepage"
+ pattern: "accounts/{account}/homepage"
+ plural: "homepages"
+ singular: "homepage"
+ };
+
+ // Identifier. The resource name of the store's homepage.
+ // Format: `accounts/{account}/homepage`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Required. The URI (typically a URL) of the store's homepage.
+ optional string uri = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Whether the homepage is claimed. See
+ // https://support.google.com/merchants/answer/176793.
+ bool claimed = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for the `GetHomepage` method.
+message GetHomepageRequest {
+ // Required. The name of the homepage to retrieve.
+ // Format: `accounts/{account}/homepage`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Homepage"
+ }
+ ];
+}
+
+// Request message for the `UpdateHomepage` method.
+message UpdateHomepageRequest {
+ // Required. The new version of the homepage.
+ Homepage homepage = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of fields being updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the `ClaimHomepage` method.
+message ClaimHomepageRequest {
+ // Required. The name of the homepage to claim.
+ // Format: `accounts/{account}/homepage`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Homepage"
+ }
+ ];
+}
+
+// Request message for the `UnclaimHomepage` method.
+message UnclaimHomepageRequest {
+ // Required. The name of the homepage to unclaim.
+ // Format: `accounts/{account}/homepage`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Homepage"
+ }
+ ];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/online_return_policy.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/online_return_policy.proto
new file mode 100644
index 00000000000..52c7168b905
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/online_return_policy.proto
@@ -0,0 +1,264 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/shopping/type/types.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "OnlineReturnPolicyProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// The service facilitates the management of a merchant's remorse return policy
+// configuration, encompassing return policies for both ads and free listings
+// ## programs. This API defines the following resource model:
+//
+// [OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
+service OnlineReturnPolicyService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Gets an existing return policy.
+ rpc GetOnlineReturnPolicy(GetOnlineReturnPolicyRequest)
+ returns (OnlineReturnPolicy) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/onlineReturnPolicies/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists all existing return policies.
+ rpc ListOnlineReturnPolicies(ListOnlineReturnPoliciesRequest)
+ returns (ListOnlineReturnPoliciesResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{parent=accounts/*}/onlineReturnPolicies"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Request message for the `GetOnlineReturnPolicy` method.
+message GetOnlineReturnPolicyRequest {
+ // Required. The name of the return policy to retrieve.
+ // Format: `accounts/{account}/onlineReturnPolicies/{return_policy}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/OnlineReturnPolicy"
+ }
+ ];
+}
+
+// Request message for the `ListOnlineReturnPolicies` method.
+message ListOnlineReturnPoliciesRequest {
+ // Required. The merchant account for which to list return policies.
+ // Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "merchantapi.googleapis.com/OnlineReturnPolicy"
+ }
+ ];
+
+ // Optional. The maximum number of `OnlineReturnPolicy` resources to return.
+ // The service returns fewer than this value if the number of return policies
+ // for the given merchant is less that than the `pageSize`. The default value
+ // is 10. The maximum value is 100; If a value higher than the maximum is
+ // specified, then the `pageSize` will default to the maximum
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListOnlineReturnPolicies`
+ // call. Provide the page token to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to
+ // `ListOnlineReturnPolicies` must match the call that provided the page
+ // token. The token returned as
+ // [nextPageToken][google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse.next_page_token]
+ // in the response to the previous request.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for the `ListOnlineReturnPolicies` method.
+message ListOnlineReturnPoliciesResponse {
+ // The retrieved return policies.
+ repeated OnlineReturnPolicy online_return_policies = 1;
+
+ // A token, which can be sent as `pageToken` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// [Online return policy](https://support.google.com/merchants/answer/10220642)
+// object. This is currently used to represent return policies for ads and free
+// listings programs.
+message OnlineReturnPolicy {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/OnlineReturnPolicy"
+ pattern: "accounts/{account}/onlineReturnPolicies/{return_policy}"
+ plural: "onlineReturnPolicies"
+ singular: "onlineReturnPolicy"
+ };
+
+ // The return shipping fee. This can either be a fixed fee or a boolean to
+ // indicate that the customer pays the actual shipping cost.
+ message ReturnShippingFee {
+ // Return shipping fee types.
+ enum Type {
+ // Default value. This value is unused.
+ TYPE_UNSPECIFIED = 0;
+
+ // The return shipping fee is a fixed value.
+ FIXED = 1;
+
+ // Customers will pay the actual return shipping fee.
+ CUSTOMER_PAYING_ACTUAL_FEE = 2;
+ }
+
+ // Type of return shipping fee.
+ Type type = 1;
+
+ // Fixed return shipping fee amount. This value is only applicable when type
+ // is `FIXED`. We will treat the return shipping fee as free if type is
+ // `FIXED` and this value is not set.
+ google.shopping.type.Price fixed_fee = 2;
+ }
+
+ // The restocking fee. This can be a flat fee or a micro percent.
+ message RestockingFee {
+ oneof type {
+ // Fixed restocking fee.
+ google.shopping.type.Price fixed_fee = 1;
+
+ // Percent of total price in micros. 15,000,000 means 15% of the total
+ // price would be charged.
+ int32 micro_percent = 2;
+ }
+ }
+
+ // The available policies.
+ message Policy {
+ // Return policy types.
+ enum Type {
+ // Default value. This value is unused.
+ TYPE_UNSPECIFIED = 0;
+
+ // The number of days within which a return is valid after delivery.
+ NUMBER_OF_DAYS_AFTER_DELIVERY = 1;
+
+ // No returns.
+ NO_RETURNS = 2;
+
+ // Life time returns.
+ LIFETIME_RETURNS = 3;
+ }
+
+ // Policy type.
+ Type type = 1;
+
+ // The number of days items can be returned after delivery, where one day
+ // is defined as 24 hours after the delivery timestamp. Required for
+ // `NUMBER_OF_DAYS_AFTER_DELIVERY` returns.
+ int64 days = 2;
+ }
+
+ // The available return methods.
+ enum ReturnMethod {
+ // Default value. This value is unused.
+ RETURN_METHOD_UNSPECIFIED = 0;
+
+ // Return by mail.
+ BY_MAIL = 1;
+
+ // Return in store.
+ IN_STORE = 2;
+
+ // Return at a kiosk.
+ AT_A_KIOSK = 3;
+ }
+
+ // The available item conditions.
+ enum ItemCondition {
+ // Default value. This value is unused.
+ ITEM_CONDITION_UNSPECIFIED = 0;
+
+ // New.
+ NEW = 1;
+
+ // Used.
+ USED = 2;
+ }
+
+ // Identifier. The name of the `OnlineReturnPolicy` resource.
+ // Format: `accounts/{account}/onlineReturnPolicies/{return_policy}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. Return policy ID generated by Google.
+ string return_policy_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // This field represents the unique user-defined label of the return policy.
+ // It is important to note that the same label cannot be used in different
+ // return policies for the same country. Unless a product specifies a specific
+ // label attribute, policies will be automatically labeled as 'default'.
+ // To assign a custom return policy to certain product groups, follow the
+ // instructions provided in the [Return policy label]
+ // (https://support.google.com/merchants/answer/9445425).
+ // The label can contain up to 50 characters.
+ string label = 3;
+
+ // The countries of sale where the return policy applies. The values
+ // must be a valid 2 letter ISO 3166 code.
+ repeated string countries = 4;
+
+ // The return policy.
+ Policy policy = 5;
+
+ // The restocking fee that applies to all return reason categories. This would
+ // be treated as a free restocking fee if the value is not set.
+ RestockingFee restocking_fee = 6;
+
+ // The return methods of how customers can return an item. This value is
+ // required to not be empty unless the type of return policy is noReturns.
+ repeated ReturnMethod return_methods = 7;
+
+ // The item conditions accepted for returns must not be empty unless the type
+ // of return policy is 'noReturns'.
+ repeated ItemCondition item_conditions = 8;
+
+ // The return shipping fee. Should be set only when customer need to download
+ // and print the return label.
+ ReturnShippingFee return_shipping_fee = 9;
+
+ // The return policy uri. This can used by Google to do a sanity check for the
+ // policy. It must be a valid URL.
+ string return_policy_uri = 10;
+
+ // This field specifies if merchant only accepts defective products for
+ // returns, and this field is required.
+ optional bool accept_defective_only = 11;
+
+ // The field specifies the number of days it takes for merchants to process
+ // refunds, field is optional.
+ optional int32 process_refund_days = 12;
+
+ // This field specifies if merchant allows customers to exchange products,
+ // this field is required.
+ optional bool accept_exchange = 13;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/phoneverificationstate.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/phoneverificationstate.proto
new file mode 100644
index 00000000000..1a55d08ef9e
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/phoneverificationstate.proto
@@ -0,0 +1,34 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "PhoneVerificationStateProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// The phone verification state.
+enum PhoneVerificationState {
+ // Default value. This value is unused.
+ PHONE_VERIFICATION_STATE_UNSPECIFIED = 0;
+
+ // The phone is verified.
+ PHONE_VERIFICATION_STATE_VERIFIED = 1;
+
+ // The phone is unverified
+ PHONE_VERIFICATION_STATE_UNVERIFIED = 2;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/programs.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/programs.proto
new file mode 100644
index 00000000000..e0f5dcd8782
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/programs.proto
@@ -0,0 +1,220 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "ProgramsProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service for program management.
+//
+// Programs provide a mechanism for adding functionality to merchant accounts. A
+// typical example of this is the [Free product
+// listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU)
+// program, which enables products from a merchant's store to be shown across
+// Google for free.
+//
+// This service exposes methods to retrieve a merchant's
+// participation in all available programs, in addition to methods for
+// explicitly enabling or disabling participation in each program.
+service ProgramsService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves the specified program for the account.
+ rpc GetProgram(GetProgramRequest) returns (Program) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/programs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Retrieves all programs for the account.
+ rpc ListPrograms(ListProgramsRequest) returns (ListProgramsResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{parent=accounts/*}/programs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Enable participation in the specified program for the account. Executing
+ // this method requires admin access.
+ rpc EnableProgram(EnableProgramRequest) returns (Program) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/{name=accounts/*/programs/*}:enable"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Disable participation in the specified program for the account. Executing
+ // this method requires admin access.
+ rpc DisableProgram(DisableProgramRequest) returns (Program) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/{name=accounts/*/programs/*}:disable"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
+
+// Defines participation in a given program for the specified account.
+//
+// Programs provide a mechanism for adding functionality to merchant accounts. A
+// typical example of this is the [Free product
+// listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU)
+// program, which enables products from a merchant's store to be shown across
+// Google for free.
+message Program {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/Program"
+ pattern: "accounts/{account}/programs/{program}"
+ plural: "programs"
+ singular: "program"
+ };
+
+ // Defines a requirement specified for participation in the program.
+ message Requirement {
+ // Output only. Name of the requirement.
+ string title = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The URL of a help page describing the requirement.
+ string documentation_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The regions that are currently affected by this requirement
+ // not being met.
+ //
+ // Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
+ // either a country where the program applies specifically to that country
+ // or `001` when the program applies globally.
+ repeated string affected_region_codes = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Possible program participation states for the account.
+ enum State {
+ // Default value. This value is unused.
+ STATE_UNSPECIFIED = 0;
+
+ // The account is not eligible to participate in the program.
+ NOT_ELIGIBLE = 1;
+
+ // The account is eligible to participate in the program.
+ ELIGIBLE = 2;
+
+ // The program is enabled for the account.
+ ENABLED = 3;
+ }
+
+ // Identifier. The resource name of the program.
+ // Format: `accounts/{account}/programs/{program}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The URL of a Merchant Center help page describing the program.
+ string documentation_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The participation state of the account in the program.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The regions in which the account is actively participating in
+ // the program. Active regions are defined as those where all program
+ // requirements affecting the regions have been met.
+ //
+ // Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
+ // either a country where the program applies specifically to that country or
+ // `001` when the program applies globally.
+ repeated string active_region_codes = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The requirements that the account has not yet satisfied that
+ // are affecting participation in the program.
+ repeated Requirement unmet_requirements = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for the GetProgram method.
+message GetProgramRequest {
+ // Required. The name of the program to retrieve.
+ // Format: `accounts/{account}/programs/{program}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Program"
+ }
+ ];
+}
+
+// Request message for the ListPrograms method.
+message ListProgramsRequest {
+ // Required. The name of the account for which to retrieve all programs.
+ // Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "merchantapi.googleapis.com/Program"
+ }
+ ];
+
+ // Optional. The maximum number of programs to return in a single response. If
+ // unspecified (or 0), a default size of 1000 is used. The maximum value is
+ // 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A continuation token, received from a previous `ListPrograms`
+ // call. Provide this to retrieve the next page.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for the ListPrograms method.
+message ListProgramsResponse {
+ // The programs for the given account.
+ repeated Program programs = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page. If this
+ // field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for the EnableProgram method.
+message EnableProgramRequest {
+ // Required. The name of the program for which to enable participation for the
+ // given account. Format: `accounts/{account}/programs/{program}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Program"
+ }
+ ];
+}
+
+// Request message for the DisableProgram method.
+message DisableProgramRequest {
+ // Required. The name of the program for which to disable participation for
+ // the given account. Format: `accounts/{account}/programs/{program}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Program"
+ }
+ ];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/regions.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/regions.proto
new file mode 100644
index 00000000000..56a0e5b6453
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/regions.proto
@@ -0,0 +1,254 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "RegionsProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Manages regions configuration.
+//
+// This API defines the following resource model:
+//
+// - [Region][google.shopping.merchant.accounts.v1main.Region]
+service RegionsService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves a region defined in your Merchant Center account.
+ rpc GetRegion(GetRegionRequest) returns (Region) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/regions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a region definition in your Merchant Center account. Executing this
+ // method requires admin access.
+ rpc CreateRegion(CreateRegionRequest) returns (Region) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/{parent=accounts/*}/regions"
+ body: "region"
+ };
+ option (google.api.method_signature) = "parent,region,region_id";
+ }
+
+ // Updates a region definition in your Merchant Center account. Executing this
+ // method requires admin access.
+ rpc UpdateRegion(UpdateRegionRequest) returns (Region) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{region.name=accounts/*/regions/*}"
+ body: "region"
+ };
+ option (google.api.method_signature) = "region,update_mask";
+ }
+
+ // Deletes a region definition from your Merchant Center account. Executing
+ // this method requires admin access.
+ rpc DeleteRegion(DeleteRegionRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/accounts/v1beta/{name=accounts/*/regions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists the regions in your Merchant Center account.
+ rpc ListRegions(ListRegionsRequest) returns (ListRegionsResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{parent=accounts/*}/regions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Request message for the `GetRegion` method.
+message GetRegionRequest {
+ // Required. The name of the region to retrieve.
+ // Format: `accounts/{account}/regions/{region}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Region"
+ }
+ ];
+}
+
+// Request message for the `CreateRegion` method.
+message CreateRegionRequest {
+ // Required. The account to create a region for.
+ // Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+
+ // Required. The identifier for the region, unique over all regions of the
+ // same account.
+ string region_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The region to create.
+ Region region = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the `UpdateRegion` method.
+message UpdateRegionRequest {
+ // Required. The updated region.
+ Region region = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The comma-separated field mask indicating the fields to update.
+ // Example:
+ // `"displayName,postalCodeArea.regionCode"`.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for the `DeleteRegion` method.
+message DeleteRegionRequest {
+ // Required. The name of the region to delete.
+ // Format: `accounts/{account}/regions/{region}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Region"
+ }
+ ];
+}
+
+// Request message for the `ListRegions` method.
+message ListRegionsRequest {
+ // Required. The account to list regions for.
+ // Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+
+ // Optional. The maximum number of regions to return. The service may return
+ // fewer than this value.
+ // If unspecified, at most 50 regions will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListRegions` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListRegions` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for the `ListRegions` method.
+message ListRegionsResponse {
+ // The regions from the specified merchant.
+ repeated Region regions = 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;
+}
+
+// Represents a geographic region that you can use as a target with both the
+// `RegionalInventory` and `ShippingSettings` services. You can define regions
+// as collections of either postal codes or, in some countries, using predefined
+// geotargets. For more information, see [Set up regions
+// ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region)
+// for more information.
+message Region {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/Region"
+ pattern: "accounts/{account}/regions/{region}"
+ plural: "regions"
+ singular: "region"
+ };
+
+ // A list of postal codes that defines the region area.
+ // Note: All regions defined using postal codes are accessible through the
+ // account's `ShippingSettings.postalCodeGroups` resource.
+ message PostalCodeArea {
+ // A range of postal codes that defines the region area.
+ message PostalCodeRange {
+ // Required. A postal code or a pattern of the form prefix* denoting the
+ // inclusive lower bound of the range defining the area. Examples values:
+ // `94108`, `9410*`, `9*`.
+ string begin = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A postal code or a pattern of the form `prefix*` denoting the
+ // inclusive upper bound of the range defining the area. It must have the
+ // same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
+ // postal code then postalCodeRangeEnd must be a postal code too; if
+ // postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
+ // pattern with the same prefix length. Optional: if not set, then the
+ // area is defined as being all the postal codes matching
+ // postalCodeRangeBegin.
+ string end = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. [CLDR territory
+ // code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
+ // or the country the postal code group applies to.
+ string region_code = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A range of postal codes.
+ repeated PostalCodeRange postal_codes = 2
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // A list of geotargets that defines the region area.
+ message GeoTargetArea {
+ // Required. A non-empty list of [location
+ // IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
+ // They must all be of the same location type (for example, state).
+ repeated int64 geotarget_criteria_ids = 1
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Identifier. The resource name of the region.
+ // Format: `accounts/{account}/regions/{region}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. The display name of the region.
+ optional string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A list of postal codes that defines the region area.
+ PostalCodeArea postal_code_area = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A list of geotargets that defines the region area.
+ GeoTargetArea geotarget_area = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Indicates if the region is eligible for use in the Regional
+ // Inventory configuration.
+ google.protobuf.BoolValue regional_inventory_eligible = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates if the region is eligible for use in the Shipping
+ // Services configuration.
+ google.protobuf.BoolValue shipping_eligible = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/shippingsettings.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/shippingsettings.proto
new file mode 100644
index 00000000000..73b8a3dd6a1
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/shippingsettings.proto
@@ -0,0 +1,715 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/shopping/type/types.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "ShippingSettingsProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to get method call shipping setting information per Merchant API
+// method.
+service ShippingSettingsService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieve shipping setting information.
+ rpc GetShippingSettings(GetShippingSettingsRequest)
+ returns (ShippingSettings) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/shippingSettings}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Replace the shipping setting of a merchant with the request shipping
+ // setting. Executing this method requires admin access.
+ rpc InsertShippingSettings(InsertShippingSettingsRequest)
+ returns (ShippingSettings) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/{parent=accounts/*}/shippingSettings:insert"
+ body: "shipping_setting"
+ };
+ }
+}
+
+// The merchant account's [shipping
+// setting]((https://support.google.com/merchants/answer/6069284).
+message ShippingSettings {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/ShippingSettings"
+ pattern: "accounts/{account}/shippingSettings"
+ plural: "shippingSettings"
+ singular: "shippingSettings"
+ };
+
+ // Identifier. The resource name of the shipping setting.
+ // Format: `accounts/{account}/shippingSetting`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. The target account's list of services.
+ repeated Service services = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A list of warehouses which can be referred to in `services`.
+ repeated Warehouse warehouses = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. This field is used for avoid async issue. Make sure shipping
+ // setting data
+ // didn't change between get call and insert call. The user should do
+ // following steps:
+ //
+ // 1. Set etag field as empty string for initial shipping setting creation.
+ //
+ // 2. After initial creation, call get method to obtain an etag and current
+ // shipping setting data before call insert.
+ //
+ // 3. Modify to wanted shipping setting information.
+ //
+ // 4. Call insert method with the wanted shipping setting information with
+ // the etag obtained from step 2.
+ //
+ // 5. If shipping setting data changed between step 2 and step 4. Insert
+ // request will fail because the etag changes every time the shipping setting
+ // data changes. User should repeate step 2-4 with the new etag.
+ string etag = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Shipping service.
+message Service {
+ // A list of stores your products are delivered from.
+ // This is only valid for the local delivery shipment type.
+ message StoreConfig {
+ // Configs related to local delivery ends for the day.
+ message CutoffConfig {
+ // Time that local delivery ends for the day.
+ message LocalCutoffTime {
+ // Hour local delivery orders must be placed by to process the same
+ // day.
+ optional int64 hour = 1;
+
+ // Minute local delivery orders must be placed by to process the same
+ // day.
+ optional int64 minute = 2;
+ }
+
+ // Time that local delivery ends for the day.
+ optional LocalCutoffTime local_cutoff_time = 1;
+
+ // Only valid with local delivery fulfillment. Represents cutoff time
+ // as the number of hours before store closing. Mutually exclusive
+ // with `local_cutoff_time`.
+ optional int64 store_close_offset_hours = 2;
+
+ // Merchants can opt-out of showing n+1 day local delivery when they have
+ // a shipping service configured to n day local delivery. For example, if
+ // the shipping service defines same-day delivery, and it's past the
+ // cut-off, setting this field to `true` results in the calculated
+ // shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the
+ // same example, setting this field to `false` results in the calculated
+ // shipping time being one day. This is only for local delivery.
+ optional bool no_delivery_post_cutoff = 3;
+ }
+
+ // Indicates whether all stores, or selected stores, listed by the
+ // merchant provide local delivery.
+ enum StoreServiceType {
+ // Did not specify store service type.
+ STORE_SERVICE_TYPE_UNSPECIFIED = 0;
+
+ // Indicates whether all stores, current and future, listed by this
+ // merchant provide local delivery.
+ ALL_STORES = 1;
+
+ // Indicates that only the stores listed in `store_codes` are eligible
+ // for local delivery.
+ SELECTED_STORES = 2;
+ }
+
+ // Indicates whether all stores, or selected stores, listed by this
+ // merchant provide local delivery.
+ optional StoreServiceType store_service_type = 1;
+
+ // Optional. A list of store codes that provide local delivery.
+ // If empty, then `all_stores` must be true.
+ repeated string store_codes = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Configs related to local delivery ends for the day.
+ optional CutoffConfig cutoff_config = 3;
+
+ // Maximum delivery radius.
+ // This is only required for the local delivery shipment type.
+ optional Distance service_radius = 4;
+ }
+
+ // [Loyalty program](https://support.google.com/merchants/answer/12922446)
+ // provided by a merchant.
+ message LoyaltyProgram {
+ // Subset of a merchants loyalty program.
+ message LoyaltyProgramTiers {
+ // The tier label [tier_label] sub-attribute differentiates offer level
+ // benefits between each tier. This value is also set in your program
+ // settings in Merchant Center, and is required for data source changes
+ // even if your loyalty program only has 1 tier.
+ optional string tier_label = 1;
+ }
+
+ // This is the loyalty program label set in your loyalty program settings in
+ // Merchant Center. This sub-attribute allows Google to map your loyalty
+ // program to eligible offers.
+ optional string program_label = 1;
+
+ // Optional. Loyalty program tier of this shipping service.
+ repeated LoyaltyProgramTiers loyalty_program_tiers = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Shipment type of shipping service.
+ enum ShipmentType {
+ // This service did not specify shipment type.
+ SHIPMENT_TYPE_UNSPECIFIED = 0;
+
+ // This service ships orders to an address chosen by the customer.
+ DELIVERY = 1;
+
+ // This service ships orders to an address chosen by the customer.
+ // The order is shipped from a local store near by.
+ LOCAL_DELIVERY = 2;
+
+ // This service ships orders to an address chosen by the customer.
+ // The order is shipped from a collection point.
+ COLLECTION_POINT = 3;
+ }
+
+ // Required. Free-form name of the service. Must be unique within target
+ // account.
+ optional string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A boolean exposing the active status of the shipping service.
+ optional bool active = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The CLDR territory code of the countries to which the service
+ // applies.
+ repeated string delivery_countries = 3
+ [(google.api.field_behavior) = REQUIRED];
+
+ // The CLDR code of the currency to which this service applies. Must match
+ // that of the prices in rate groups.
+ optional string currency_code = 4;
+
+ // Required. Time spent in various aspects from order to the delivery of the
+ // product.
+ optional DeliveryTime delivery_time = 5
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Shipping rate group definitions. Only the last one is allowed to
+ // have an empty `applicable_shipping_labels`, which means "everything else".
+ // The other `applicable_shipping_labels` must not overlap.
+ repeated RateGroup rate_groups = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Type of locations this service ships orders to.
+ optional ShipmentType shipment_type = 7;
+
+ // Minimum order value for this service. If set, indicates that customers
+ // will have to spend at least this amount.
+ // All prices within a service must have the same currency.
+ // Cannot be set together with minimum_order_value_table.
+ optional google.shopping.type.Price minimum_order_value = 8;
+
+ // Table of per store minimum order values for the pickup fulfillment type.
+ // Cannot be set together with minimum_order_value.
+ optional MinimumOrderValueTable minimum_order_value_table = 9;
+
+ // A list of stores your products are delivered from.
+ // This is only valid for the local delivery shipment type.
+ optional StoreConfig store_config = 10;
+
+ // Optional. Loyalty programs that this shipping service is limited to.
+ repeated LoyaltyProgram loyalty_programs = 11
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Maximum delivery radius.
+// This is only required for the local delivery shipment type.
+message Distance {
+ // Unit can differ based on country, it is parameterized to include miles
+ // and kilometers.
+ enum Unit {
+ // Unit unspecified
+ UNIT_UNSPECIFIED = 0;
+
+ // Unit in miles
+ MILES = 1;
+
+ // Unit in kilometers
+ KILOMETERS = 2;
+ }
+
+ // Integer value of distance.
+ optional int64 value = 1;
+
+ // Unit can differ based on country, it is parameterized to include miles
+ // and kilometers.
+ optional Unit unit = 2;
+}
+
+// A fulfillment warehouse, which stores and handles inventory.
+// Next tag: 7
+message Warehouse {
+ // Required. The name of the warehouse. Must be unique within account.
+ optional string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Shipping address of the warehouse.
+ optional Address shipping_address = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The latest time of day that an order can be accepted and begin
+ // processing. Later orders will be processed in the next day. The time is
+ // based on the warehouse postal code.
+ optional WarehouseCutoffTime cutoff_time = 3
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The number of days it takes for this warehouse to pack up and
+ // ship an item. This is on the warehouse level, but can be overridden on the
+ // offer level based on the attributes of an item.
+ optional int64 handling_days = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Business days of the warehouse.
+ // If not set, will be Monday to Friday by default.
+ optional BusinessDayConfig business_day_config = 5;
+}
+
+// The latest time of day that an order can be accepted and begin processing.
+// Later orders will be processed in the next day. The time is based on the
+// warehouse postal code.
+message WarehouseCutoffTime {
+ // Required. Hour of the cutoff time until which an order has to be placed to
+ // be processed in the same day by the warehouse. Hour is based on the
+ // timezone of warehouse.
+ optional int32 hour = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Minute of the cutoff time until which an order has to be placed
+ // to be processed in the same day by the warehouse. Minute is based on the
+ // timezone of warehouse.
+ optional int32 minute = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Shipping address of the warehouse.
+message Address {
+ // Street-level part of the address. For example: `111w 31st Street`.
+ optional string street_address = 1;
+
+ // Required. City, town or commune. May also include dependent localities or
+ // sublocalities (For example neighborhoods or suburbs).
+ optional string city = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Top-level administrative subdivision of the country. For example,
+ // a state like California ("CA") or a province like Quebec ("QC").
+ optional string administrative_area = 3
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Postal code or ZIP (For example "94043").
+ optional string postal_code = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. [CLDR country
+ // code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
+ // (For example "US").
+ optional string region_code = 5 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Time spent in various aspects from order to the delivery of the product.
+message DeliveryTime {
+ // Minimum number of business days that is spent in transit. 0 means same
+ // day delivery, 1 means next day delivery.
+ // Either `min_transit_days`, `max_transit_days` or
+ // `transit_time_table` must be set, but not both.
+ optional int32 min_transit_days = 1;
+
+ // Maximum number of business days that is spent in transit. 0 means same
+ // day delivery, 1 means next day delivery. Must be greater than or equal
+ // to `min_transit_days`.
+ optional int32 max_transit_days = 2;
+
+ // Business days cutoff time definition.
+ // If not configured the cutoff time will be defaulted to 8AM PST.
+ optional CutoffTime cutoff_time = 3;
+
+ // Minimum number of business days spent before an order is shipped.
+ // 0 means same day shipped, 1 means next day shipped.
+ optional int32 min_handling_days = 4;
+
+ // Maximum number of business days spent before an order is shipped.
+ // 0 means same day shipped, 1 means next day shipped.
+ // Must be greater than or equal to `min_handling_days`.
+ optional int32 max_handling_days = 5;
+
+ // Transit time table, number of business days spent in transit based on row
+ // and column dimensions. Either `min_transit_days`, `max_transit_days` or
+ // `transit_time_table` can be set, but not both.
+ optional TransitTable transit_time_table = 6;
+
+ // The business days during which orders can be handled.
+ // If not provided, Monday to Friday business days will be assumed.
+ optional BusinessDayConfig handling_business_day_config = 7;
+
+ // The business days during which orders can be in-transit.
+ // If not provided, Monday to Friday business days will be assumed.
+ optional BusinessDayConfig transit_business_day_config = 8;
+
+ // Optional. Indicates that the delivery time should be calculated per
+ // warehouse (shipping origin location) based on the settings of the selected
+ // carrier. When set, no other transit time related field in [delivery
+ // time][[google.shopping.content.bundles.ShippingSetting.DeliveryTime] should
+ // be set.
+ repeated WarehouseBasedDeliveryTime warehouse_based_delivery_times = 9
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Business days cutoff time definition.
+message CutoffTime {
+ // Required. Hour of the cutoff time until which an order has to be placed to
+ // be processed in the same day.
+ optional int32 hour = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Minute of the cutoff time until which an order has to be placed
+ // to be processed in the same day.
+ optional int32 minute = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. [Timezone
+ // identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids)
+ // For example "Europe/Zurich".
+ optional string time_zone = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Business days of the warehouse.
+message BusinessDayConfig {
+ enum Weekday {
+ WEEKDAY_UNSPECIFIED = 0;
+
+ MONDAY = 1;
+
+ TUESDAY = 2;
+
+ WEDNESDAY = 3;
+
+ THURSDAY = 4;
+
+ FRIDAY = 5;
+
+ SATURDAY = 6;
+
+ SUNDAY = 7;
+ }
+
+ // Required. Regular business days.
+ // May not be empty.
+ repeated Weekday business_days = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Indicates that the delivery time should be calculated per warehouse
+// (shipping origin location) based on the settings of the selected carrier.
+// When set, no other transit time related field in `delivery_time` should be
+// set.
+message WarehouseBasedDeliveryTime {
+ // Required. Carrier, such as `"UPS"` or `"Fedex"`.
+ optional string carrier = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Carrier service, such as `"ground"` or `"2 days"`. The name of
+ // the service must be in the eddSupportedServices list.
+ optional string carrier_service = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Warehouse name. This should match
+ // [warehouse][ShippingSetting.warehouses.name]
+ optional string warehouse = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Shipping rate group definitions. Only the last one is allowed to have an
+// empty `applicable_shipping_labels`, which means
+// "everything else". The other `applicable_shipping_labels` must
+// not overlap.
+message RateGroup {
+ // Required. A list of [shipping
+ // labels](https://support.google.com/merchants/answer/6324504) defining the
+ // products to which this rate group applies to. This is a disjunction: only
+ // one of the labels has to match for the rate group to apply. May only be
+ // empty for the last rate group of a service.
+ repeated string applicable_shipping_labels = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // The value of the rate group (For example flat rate $10). Can only be set
+ // if `main_table` and `subtables` are not set.
+ optional Value single_value = 2;
+
+ // A table defining the rate group, when `single_value` is not
+ // expressive enough. Can only be set if `single_value` is not
+ // set.
+ optional Table main_table = 3;
+
+ // Optional. A list of subtables referred to by `main_table`. Can only
+ // be set if `main_table` is set.
+ repeated Table subtables = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A list of carrier rates that can be referred to by
+ // `main_table` or `single_value`.
+ repeated CarrierRate carrier_rates = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Name of the rate group.
+ // If set has to be unique within shipping service.
+ optional string name = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A table defining the rate group, when `single_value` is not
+// expressive enough.
+message Table {
+ // Name of the table. Required for subtables, ignored for the main table.
+ optional string name = 1;
+
+ // Required. Headers of the table's rows.
+ optional Headers row_headers = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Headers of the table's columns. Optional: if not set then the table has
+ // only one dimension.
+ optional Headers column_headers = 3;
+
+ // Required. The list of rows that constitute the table. Must have the same
+ // length as `row_headers`.
+ repeated Row rows = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Transit time table, number of business days spent in transit based on row
+// and column dimensions. Either `min_transit_days`, `max_transit_days` or
+// `transit_time_table` can be set, but not both.
+message TransitTable {
+ // If there's only one dimension set of `postal_code_group_names` or
+ // `transit_time_labels`, there are multiple rows each with one value
+ // for that dimension. If there are two dimensions, each row corresponds to a
+ // `postal_code_group_names`, and columns (values) to a
+ // `transit_time_labels`.
+ message TransitTimeRow {
+ // Transit time range (min-max) in business days.
+ message TransitTimeValue {
+ // Minimum transit time range in business days. 0 means same
+ // day delivery, 1 means next day delivery.
+ optional int32 min_transit_days = 1;
+
+ // Must be greater than or equal to `min_transit_days`.
+ optional int32 max_transit_days = 2;
+ }
+
+ // Required. Transit time range (min-max) in business days.
+ repeated TransitTimeValue values = 1
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Required. A list of region names
+ // [Region.name][google.shopping.merchant.accounts.v1beta.Region.name] . The
+ // last value can be
+ // `"all other locations"`. Example:
+ // `["zone 1", "zone 2", "all other locations"]`. The referred
+ // postal code groups must match the delivery country of the service.
+ repeated string postal_code_group_names = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A list of transit time labels. The last value can be
+ // `"all other labels"`. Example:
+ // `["food", "electronics", "all other labels"]`.
+ repeated string transit_time_labels = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. If there's only one dimension set of `postal_code_group_names` or
+ // `transit_time_labels`, there are multiple rows each with one value
+ // for that dimension. If there are two dimensions, each row corresponds to a
+ // `postal_code_group_names`, and columns (values) to a
+ // `transit_time_labels`.
+ repeated TransitTimeRow rows = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Table of per store minimum order values for the pickup fulfillment type.
+message MinimumOrderValueTable {
+ // A list of store code sets sharing the same minimum order value. At least
+ // two sets are required and the last one must be empty, which signifies
+ // 'MOV for all other stores'.
+ // Each store code can only appear once across all the sets.
+ // All prices within a service must have the same currency.
+ message StoreCodeSetWithMov {
+ // Optional. A list of unique store codes or empty for the catch all.
+ repeated string store_codes = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // The minimum order value for the given stores.
+ optional google.shopping.type.Price value = 2;
+ }
+
+ // Required. A list of store code sets sharing the same minimum order value
+ // (MOV). At least two sets are required and the last one must be empty, which
+ // signifies 'MOV for all other stores'. Each store code can only appear once
+ // across all the sets. All prices within a service must have the same
+ // currency.
+ repeated StoreCodeSetWithMov store_code_set_with_movs = 1
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// A non-empty list of row or column headers for a table.
+// Exactly one of `prices`, `weights`,
+// `num_items`, `postal_code_group_names`, or
+// `location` must be set.
+message Headers {
+ // Required. A list of inclusive order price upper bounds. The last price's
+ // value can be infinity by setting price amount_micros = -1. For example
+ // `[{"amount_micros": 10000000, "currency_code": "USD"},
+ // {"amount_micros": 500000000, "currency_code": "USD"},
+ // {"amount_micros": -1, "currency_code": "USD"}]` represents the headers
+ // "<= $10", "<= $500", and "> $500". All prices within a service must have
+ // the same currency. Must be non-empty. Must be positive except -1. Can only
+ // be set if all other fields are not set.
+ repeated google.shopping.type.Price prices = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A list of inclusive order weight upper bounds. The last weight's
+ // value can be infinity by setting price amount_micros = -1. For example
+ // `[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
+ // "unit": "kg"},
+ // {"amount_micros": -1, "unit": "kg"}]` represents the headers
+ // "<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
+ // the same unit. Must be non-empty. Must be positive except -1. Can only be
+ // set if all other fields are not set.
+ repeated google.shopping.type.Weight weights = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A list of inclusive number of items upper bounds. The last value
+ // can be
+ // `"infinity"`. For example
+ // `["10", "50", "infinity"]` represents the headers
+ // "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can
+ // only be set if all other fields are not set.
+ repeated string number_of_items = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A list of postal group names. The last value can be
+ // `"all other locations"`. Example:
+ // `["zone 1", "zone 2", "all other locations"]`. The referred
+ // postal code groups must match the delivery country of the service. Must
+ // be non-empty. Can only be set if all other fields are not set.
+ repeated string postal_code_group_names = 4
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A list of location ID sets. Must be non-empty. Can only be set if
+ // all other fields are not set.
+ repeated LocationIdSet locations = 5 [(google.api.field_behavior) = REQUIRED];
+}
+
+// A list of location ID sets. Must be non-empty. Can only be set if all
+// other fields are not set.
+message LocationIdSet {
+ // Required. A non-empty list of
+ // [location
+ // IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
+ // They must all be of the same location type (For
+ // example, state).
+ repeated string location_ids = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Include a list of cells.
+message Row {
+ // Required. The list of cells that constitute the row. Must have the same
+ // length as `columnHeaders` for two-dimensional tables, a length of 1 for
+ // one-dimensional tables.
+ repeated Value cells = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The single value of a rate group or the value of a rate group table's cell.
+// Exactly one of `no_shipping`, `flat_rate`,
+// `price_percentage`, `carrier_rateName`,
+// `subtable_name` must be set.
+message Value {
+ // If true, then the product can't be shipped. Must be true when set, can only
+ // be set if all other fields are not set.
+ optional bool no_shipping = 1;
+
+ // A flat rate. Can only be set if all other fields are not set.
+ optional google.shopping.type.Price flat_rate = 2;
+
+ // A percentage of the price represented as a number in decimal notation
+ // (For example, `"5.4"`). Can only be set if all other fields are not
+ // set.
+ optional string price_percentage = 3;
+
+ // The name of a carrier rate referring to a carrier rate defined in the
+ // same rate group. Can only be set if all other fields are not set.
+ optional string carrier_rate = 4;
+
+ // The name of a subtable. Can only be set in table cells (For example, not
+ // for single values), and only if all other fields are not set.
+ optional string subtable = 5;
+}
+
+// A list of carrier rates that can be referred to by
+// `main_table` or `single_value`.
+message CarrierRate {
+ // Required. Name of the carrier rate. Must be unique per rate group.
+ optional string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Carrier service, such as `"UPS"` or `"Fedex"`.
+ optional string carrier = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Carrier service, such as `"ground"` or `"2 days"`.
+ optional string carrier_service = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Shipping origin for this carrier rate.
+ optional string origin_postal_code = 4
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Multiplicative shipping rate modifier as a number in decimal
+ // notation. Can be negative. For example `"5.4"` increases the rate by 5.4%,
+ // `"-3"` decreases the rate by 3%.
+ optional string percentage_adjustment = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additive shipping rate modifier. Can be negative. For example
+ // `{ "amount_micros": 1, "currency_code" : "USD" }` adds $1 to the rate,
+ // `{ "amount_micros": -3, "currency_code" : "USD" }` removes $3 from the
+ // rate.
+ optional google.shopping.type.Price flat_adjustment = 6
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for the `GetShippingSetting` method.
+message GetShippingSettingsRequest {
+ // Required. The name of the shipping setting to retrieve.
+ // Format: `accounts/{account}/shippingsetting`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/ShippingSettings"
+ }
+ ];
+}
+
+// Request message for the `InsertShippingSetting` method.
+message InsertShippingSettingsRequest {
+ // Required. The account where this product will be inserted.
+ // Format: accounts/{account}
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The new version of the account.
+ ShippingSettings shipping_setting = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/tax_rule.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/tax_rule.proto
new file mode 100644
index 00000000000..a3217675d9d
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/tax_rule.proto
@@ -0,0 +1,87 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/field_behavior.proto";
+import "google/type/interval.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "TaxRuleProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Primary type convension
+//
+// percent micro : 100% = 1 000 000 and 1% = 10 000
+// cannot be negative.
+//
+// Information about tax nexus and related parameters applicable to orders
+// delivered to the area covered by a single tax admin. Nexus is created when a
+// merchant is doing business in an area administered by tax admin (only US
+// states are supported for nexus configuration). If merchant has nexus in a US
+// state, merchant needs to pay tax to all tax authorities associated with
+// the shipping destination.
+// Next Id : 8
+message TaxRule {
+ // A range of postal codes that defines the area.
+ message TaxPostalCodeRange {
+ // Required. The start of the postal code range, which is also the smallest
+ // in the range.
+ string start = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The end of the postal code range. Will be the same as start if not
+ // specified.
+ string end = 2;
+ }
+
+ // Describe the location through either postal code range or a criteria id.
+ oneof location {
+ // The admin_id or criteria_id of the region in which this rule is
+ // applicable.
+ int64 location_id = 2;
+
+ // The range of postal codes in which this rule is applicable.
+ TaxPostalCodeRange post_code_range = 3;
+ }
+
+ // What is the way to calculate tax rate for deliveries to this admin's area.
+ // Can only be set on US states.
+ oneof rate_calculation {
+ // Rate that depends on delivery location: if merchant has a nexus in
+ // corresponding US state, rates from authorities with jurisdiction over
+ // delivery area are added up.
+ bool use_google_rate = 4;
+
+ // A fixed rate specified in micros, where 100% = 1_000_000.
+ // Suitable for origin-based states.
+ int64 self_specified_rate_micros = 5;
+ }
+
+ // Region code in which this rule is applicable
+ string region_code = 1;
+
+ // If set, shipping charge is taxed (at the same rate as product) when
+ // delivering to this admin's area.
+ // Can only be set on US states without category.
+ bool shipping_taxed = 6;
+
+ // Required. Time period when this rule is effective. If the duration is
+ // missing from effective_time listed, then it is open ended to the future.
+ // The start of this time period is inclusive, and the end is exclusive.
+ google.type.Interval effective_time_period = 7
+ [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofservice.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofservice.proto
new file mode 100644
index 00000000000..549a3a941f4
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofservice.proto
@@ -0,0 +1,145 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/empty.proto";
+import "google/shopping/merchant/accounts/v1beta/termsofservicekind.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "TermsOfServiceProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support `TermsOfService` API.
+service TermsOfServiceService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves the `TermsOfService` associated with the provided version.
+ rpc GetTermsOfService(GetTermsOfServiceRequest) returns (TermsOfService) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=termsOfService/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Retrieves the latest version of the `TermsOfService` for a given `kind` and
+ // `region_code`.
+ rpc RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest)
+ returns (TermsOfService) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/termsOfService:retrieveLatest"
+ };
+ }
+
+ // Accepts a `TermsOfService`. Executing this method requires admin access.
+ rpc AcceptTermsOfService(AcceptTermsOfServiceRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=termsOfService/*}:accept"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
+
+// A `TermsOfService`.
+message TermsOfService {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/TermsOfService"
+ pattern: "termsOfService/{version}"
+ };
+
+ // Identifier. The resource name of the terms of service version.
+ // Format: `termsOfService/{version}`
+ string name = 1 [
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/TermsOfService"
+ }
+ ];
+
+ // Region code as defined by [CLDR](https://cldr.unicode.org/). This is either
+ // a country where the ToS applies specifically to that country or `001` when
+ // the same `TermsOfService` can be signed in any country. However note that
+ // when signing a ToS that applies globally we still expect that a specific
+ // country is provided (this should be merchant business country or program
+ // country of participation).
+ string region_code = 2;
+
+ // The Kind this terms of service version applies to.
+ TermsOfServiceKind kind = 3;
+
+ // URI for terms of service file that needs to be displayed to signing users.
+ optional string file_uri = 4;
+
+ // Whether this terms of service version is external. External terms of
+ // service versions can only be agreed through external processes and not
+ // directly by the merchant through UI or API.
+ bool external = 5;
+}
+
+// Request message for the `GetTermsOfService` method.
+message GetTermsOfServiceRequest {
+ // Required. The resource name of the terms of service version.
+ // Format: `termsOfService/{version}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/TermsOfService"
+ }
+ ];
+}
+
+// Request message for the `RetrieveLatestTermsOfService` method.
+message RetrieveLatestTermsOfServiceRequest {
+ // Region code as defined by [CLDR](https://cldr.unicode.org/). This is either
+ // a country when the ToS applies specifically to that country or 001 when it
+ // applies globally.
+ string region_code = 1;
+
+ // The Kind this terms of service version applies to.
+ TermsOfServiceKind kind = 2;
+}
+
+// Request message for the `AcceptTermsOfService` method.
+message AcceptTermsOfServiceRequest {
+ // Required. The resource name of the terms of service version.
+ // Format: `termsOfService/{version}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/TermsOfService"
+ }
+ ];
+
+ // Required. The account for which to accept the ToS.
+ string account = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+
+ // Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This
+ // is either a country when the ToS applies specifically to that country or
+ // 001 when it applies globally.
+ string region_code = 3 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.proto
new file mode 100644
index 00000000000..3d3b76f2310
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.proto
@@ -0,0 +1,166 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/shopping/merchant/accounts/v1beta/termsofservicekind.proto";
+import "google/type/date.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "TermsOfServiceAgreementStateProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support `TermsOfServiceAgreementState` API.
+service TermsOfServiceAgreementStateService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Returns the state of a terms of service agreement.
+ rpc GetTermsOfServiceAgreementState(GetTermsOfServiceAgreementStateRequest)
+ returns (TermsOfServiceAgreementState) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/termsOfServiceAgreementStates/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Retrieves the state of the agreement for the application terms of service.
+ rpc RetrieveForApplicationTermsOfServiceAgreementState(
+ RetrieveForApplicationTermsOfServiceAgreementStateRequest)
+ returns (TermsOfServiceAgreementState) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{parent=accounts/*}/termsOfServiceAgreementStates:retrieveForApplication"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// This resource represents the agreement state for a given account and terms of
+// service kind.
+// The state is as follows:
+//
+// * If the merchant has accepted a terms of service:
+// [accepted](TermsOfServiceAggrementState.accepted) will be populated,
+// otherwise it will be empty
+// * If the merchant must sign a terms of service:
+// [required](TermsOfServiceAggrementState.required) will be populated,
+// otherwise it will be empty.
+//
+// Note that both [required](TermsOfServiceAggrementState.required) and
+// [accepted](TermsOfServiceAggrementState.accepted) can be present. In this
+// case the `accepted` terms of services will have an expiration date set in the
+// [valid_until](Accepted.valid_until) field. The `required` terms of services
+// need to be accepted before `valid_until` in order for the account to continue
+// having a valid agreement. When accepting new terms of services we expect 3Ps
+// to display the text associated with the given terms of service agreement (the
+// url to the file containing the text is added in the Required message below as
+// [tos_file_uri](Accepted.tos_file_uri). The actual acceptance of the terms of
+// service is done by calling accept on the [TermsOfService](TermsOfService)
+// resource.
+message TermsOfServiceAgreementState {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/TermsOfServiceAgreementState"
+ pattern: "accounts/{account}/termsOfServiceAgreementStates/{identifier}"
+ plural: "termsOfServiceAgreementStates"
+ singular: "termsOfServiceAgreementState"
+ };
+
+ // Identifier. The resource name of the terms of service version.
+ // Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Region code as defined by https://cldr.unicode.org/. This is the
+ // country the current state applies to.
+ string region_code = 2;
+
+ // Terms of Service kind associated with the particular version.
+ TermsOfServiceKind terms_of_service_kind = 3;
+
+ // The accepted terms of service of this kind and for the associated
+ // region_code
+ optional Accepted accepted = 4;
+
+ // The required terms of service
+ optional Required required = 5;
+}
+
+// Describes the accepted terms of service.
+message Accepted {
+ // The accepted
+ // [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
+ string terms_of_service = 1 [(google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/TermsOfService"
+ }];
+
+ // The account where the acceptance was recorded. This can be the account
+ // itself or, in the case of subaccounts, the MCA account.
+ string accepted_by = 2 [(google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }];
+
+ // When set, it states that the accepted
+ // [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
+ // is only valid until the end of this date (in UTC). A new one must be
+ // accepted before then. The information of the required
+ // [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
+ // is found in the [Required](Required) message.
+ optional google.type.Date valid_until = 3;
+}
+
+// Describes the terms of service which are required to be accepted.
+message Required {
+ // The
+ // [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
+ // that need to be accepted.
+ string terms_of_service = 1 [(google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/TermsOfService"
+ }];
+
+ // Full URL to the terms of service file. This field is the same as
+ // [TermsOfService.file_uri](TermsOfService.file_uri), it is added
+ // here for convenience only.
+ string tos_file_uri = 2;
+}
+
+// Request message for the `GetTermsOfServiceAgreementState` method.
+message GetTermsOfServiceAgreementStateRequest {
+ // Required. The resource name of the terms of service version.
+ // Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/TermsOfServiceAgreementState"
+ }
+ ];
+}
+
+// Request message for the `RetrieveForApplicationTermsOfServiceAgreementState`
+// method.
+message RetrieveForApplicationTermsOfServiceAgreementStateRequest {
+ // Required. The account for which to get a TermsOfServiceAgreementState
+ // Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "merchantapi.googleapis.com/TermsOfServiceAgreementState"
+ }
+ ];
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofservicekind.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofservicekind.proto
new file mode 100644
index 00000000000..96848981d7e
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/termsofservicekind.proto
@@ -0,0 +1,31 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "TermsOfServiceKindProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// The TermsOfService Kind.
+enum TermsOfServiceKind {
+ // Default value. This value is unused.
+ TERMS_OF_SERVICE_KIND_UNSPECIFIED = 0;
+
+ // Merchant Center application.
+ MERCHANT_CENTER = 1;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/user.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/user.proto
new file mode 100644
index 00000000000..7f4d2bb3cb8
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/merchant/accounts/v1beta/user.proto
@@ -0,0 +1,217 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.merchant.accounts.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/shopping/merchant/accounts/v1beta/accessright.proto";
+
+option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb";
+option java_multiple_files = true;
+option java_outer_classname = "UserProto";
+option java_package = "com.google.shopping.merchant.accounts.v1beta";
+
+// Service to support user API.
+service UserService {
+ option (google.api.default_host) = "merchantapi.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
+
+ // Retrieves a Merchant Center account user.
+ rpc GetUser(GetUserRequest) returns (User) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{name=accounts/*/users/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a Merchant Center account user. Executing this method requires
+ // admin access.
+ rpc CreateUser(CreateUserRequest) returns (User) {
+ option (google.api.http) = {
+ post: "/accounts/v1beta/{parent=accounts/*}/users"
+ body: "user"
+ };
+ option (google.api.method_signature) = "parent,user";
+ }
+
+ // Deletes a Merchant Center account user. Executing this method requires
+ // admin access.
+ rpc DeleteUser(DeleteUserRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/accounts/v1beta/{name=accounts/*/users/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates a Merchant Center account user. Executing this method requires
+ // admin access.
+ rpc UpdateUser(UpdateUserRequest) returns (User) {
+ option (google.api.http) = {
+ patch: "/accounts/v1beta/{user.name=accounts/*/users/*}"
+ body: "user"
+ };
+ option (google.api.method_signature) = "user,update_mask";
+ }
+
+ // Lists all users of a Merchant Center account.
+ rpc ListUsers(ListUsersRequest) returns (ListUsersResponse) {
+ option (google.api.http) = {
+ get: "/accounts/v1beta/{parent=accounts/*}/users"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// A [user](https://support.google.com/merchants/answer/12160472).
+message User {
+ option (google.api.resource) = {
+ type: "merchantapi.googleapis.com/User"
+ pattern: "accounts/{account}/users/{email}"
+ plural: "users"
+ singular: "user"
+ };
+
+ // The possible states of a user.
+ enum State {
+ // Default value. This value is unused.
+ STATE_UNSPECIFIED = 0;
+
+ // The user is pending confirmation. In this state, the user first needs to
+ // accept the invitation before performing other actions.
+ PENDING = 1;
+
+ // The user is verified.
+ VERIFIED = 2;
+ }
+
+ // Identifier. The resource name of the user.
+ // Format: `accounts/{account}/user/{email}`
+ //
+ // Use `me` to refer to your own email address, for example
+ // `accounts/{account}/users/me`.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The state of the user.
+ State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The [access
+ // rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes)
+ // the user has.
+ repeated AccessRight access_rights = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for the `GetUser` method.
+message GetUserRequest {
+ // Required. The name of the user to retrieve.
+ // Format: `accounts/{account}/users/{email}`
+ //
+ // It is also possible to retrieve the user corresponding to the caller by
+ // using `me` rather than an email address as in
+ // `accounts/{account}/users/me`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/User"
+ }
+ ];
+}
+
+// Request message for the `CreateUser` method.
+message CreateUserRequest {
+ // Required. The resource name of the account for which a user will be
+ // created. Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+
+ // Required. The email address of the user (for example,
+ // `john.doe@gmail.com`).
+ string user_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The user to create.
+ User user = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the `DeleteUser` method.
+message DeleteUserRequest {
+ // Required. The name of the user to delete.
+ // Format: `accounts/{account}/users/{email}`
+ //
+ // It is also possible to delete the user corresponding to the caller by using
+ // `me` rather than an email address as in `accounts/{account}/users/me`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/User"
+ }
+ ];
+}
+
+// Request message for the `UpdateUser` method.
+message UpdateUserRequest {
+ // Required. The new version of the user.
+ //
+ // Use `me` to refer to your own email address, for example
+ // `accounts/{account}/users/me`.
+ User user = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of fields being updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the `ListUsers` method.
+message ListUsersRequest {
+ // Required. The parent, which owns this collection of users.
+ // Format: `accounts/{account}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "merchantapi.googleapis.com/Account"
+ }
+ ];
+
+ // Optional. The maximum number of users to return. The service may return
+ // fewer than this value. If unspecified, at most 50 users will be returned.
+ // The maximum value is 100; values above 100 will be coerced to 100
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListUsers` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListUsers` must match
+ // the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for the `ListUsers` method.
+message ListUsersResponse {
+ // The users from the specified account.
+ repeated User users = 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;
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/google/shopping/type/types.proto b/packages/google-shopping-merchant-accounts/protos/google/shopping/type/types.proto
new file mode 100644
index 00000000000..0d219e72d6a
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/google/shopping/type/types.proto
@@ -0,0 +1,193 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.shopping.type;
+
+option csharp_namespace = "Google.Shopping.Type";
+option go_package = "cloud.google.com/go/shopping/type/typepb;typepb";
+option java_multiple_files = true;
+option java_outer_classname = "TypesProto";
+option java_package = "com.google.shopping.type";
+
+// The weight represented as the value in string and the unit.
+message Weight {
+ // The weight unit.
+ enum WeightUnit {
+ // unit unspecified
+ WEIGHT_UNIT_UNSPECIFIED = 0;
+
+ // lb unit.
+ POUND = 1;
+
+ // kg unit.
+ KILOGRAM = 2;
+ }
+
+ // Required. The weight represented as a number in micros (1 million micros is
+ // an equivalent to one's currency standard unit, for example, 1 kg = 1000000
+ // micros).
+ // This field can also be set as infinity by setting to -1.
+ // This field only support -1 and positive value.
+ optional int64 amount_micros = 1;
+
+ // Required. The weight unit.
+ // Acceptable values are: kg and lb
+ WeightUnit unit = 2;
+}
+
+// The price represented as a number and currency.
+message Price {
+ // The price represented as a number in micros (1 million micros is an
+ // equivalent to one's currency standard unit, for example, 1 USD = 1000000
+ // micros).
+ optional int64 amount_micros = 1;
+
+ // The currency of the price using three-letter acronyms according to [ISO
+ // 4217](http://en.wikipedia.org/wiki/ISO_4217).
+ optional string currency_code = 2;
+}
+
+// A message that represents custom attributes. Exactly one of `value` or
+// `group_values` must not be empty.
+message CustomAttribute {
+ // The name of the attribute.
+ optional string name = 1;
+
+ // The value of the attribute. If `value` is not empty, `group_values` must be
+ // empty.
+ optional string value = 2;
+
+ // Subattributes within this attribute group. If
+ // `group_values` is not empty, `value` must be empty.
+ repeated CustomAttribute group_values = 3;
+}
+
+// Destinations available for a product.
+//
+// Destinations are used in Merchant Center to allow you to control where the
+// products from your data feed should be displayed.
+//
+message Destination {
+ // Destination values.
+ enum DestinationEnum {
+ // Not specified.
+ DESTINATION_ENUM_UNSPECIFIED = 0;
+
+ // [Shopping ads](https://support.google.com/google-ads/answer/2454022).
+ SHOPPING_ADS = 1;
+
+ // [Display ads](https://support.google.com/merchants/answer/6069387).
+ DISPLAY_ADS = 2;
+
+ // [Local inventory
+ // ads](https://support.google.com/merchants/answer/3057972).
+ LOCAL_INVENTORY_ADS = 3;
+
+ // [Free listings](https://support.google.com/merchants/answer/9199328).
+ FREE_LISTINGS = 4;
+
+ // [Free local product
+ // listings](https://support.google.com/merchants/answer/9825611).
+ FREE_LOCAL_LISTINGS = 5;
+
+ // [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
+ YOUTUBE_SHOPPING = 6;
+ }
+}
+
+// Reporting contexts that your account and product issues apply to.
+//
+// Reporting contexts are groups of surfaces and formats for product results on
+// Google. They can represent the entire destination (for example, [Shopping
+// ads](https://support.google.com/merchants/answer/6149970)) or a subset of
+// formats within a destination (for example, [Demand Gen
+// ads](https://support.google.com/merchants/answer/13389785)).
+//
+message ReportingContext {
+ // Reporting context values.
+ enum ReportingContextEnum {
+ // Not specified.
+ REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0;
+
+ // [Shopping ads](https://support.google.com/merchants/answer/6149970).
+ SHOPPING_ADS = 1;
+
+ // Deprecated: Use `DEMAND_GEN_ADS` instead.
+ // [Discovery and Demand Gen
+ // ads](https://support.google.com/merchants/answer/13389785).
+ DISCOVERY_ADS = 2 [deprecated = true];
+
+ // [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
+ DEMAND_GEN_ADS = 13;
+
+ // [Demand Gen ads on Discover
+ // surface](https://support.google.com/merchants/answer/13389785).
+ DEMAND_GEN_ADS_DISCOVER_SURFACE = 14;
+
+ // [Video ads](https://support.google.com/google-ads/answer/6340491).
+ VIDEO_ADS = 3;
+
+ // [Display ads](https://support.google.com/merchants/answer/6069387).
+ DISPLAY_ADS = 4;
+
+ // [Local inventory
+ // ads](https://support.google.com/merchants/answer/3271956).
+ LOCAL_INVENTORY_ADS = 5;
+
+ // [Vehicle inventory
+ // ads](https://support.google.com/merchants/answer/11544533).
+ VEHICLE_INVENTORY_ADS = 6;
+
+ // [Free product
+ // listings](https://support.google.com/merchants/answer/9199328).
+ FREE_LISTINGS = 7;
+
+ // [Free local product
+ // listings](https://support.google.com/merchants/answer/9825611).
+ FREE_LOCAL_LISTINGS = 8;
+
+ // [Free local vehicle
+ // listings](https://support.google.com/merchants/answer/11544533).
+ FREE_LOCAL_VEHICLE_LISTINGS = 9;
+
+ // [YouTube
+ // Shopping](https://support.google.com/merchants/answer/13478370).
+ YOUTUBE_SHOPPING = 10;
+
+ // [Cloud retail](https://cloud.google.com/solutions/retail).
+ CLOUD_RETAIL = 11;
+
+ // [Local cloud retail](https://cloud.google.com/solutions/retail).
+ LOCAL_CLOUD_RETAIL = 12;
+ }
+}
+
+// [Channel](https://support.google.com/merchants/answer/7361332) of a product.
+//
+// Channel is used to distinguish between online and local products.
+message Channel {
+ // Channel values.
+ enum ChannelEnum {
+ // Not specified.
+ CHANNEL_ENUM_UNSPECIFIED = 0;
+
+ // Online product.
+ ONLINE = 1;
+
+ // Local product.
+ LOCAL = 2;
+ }
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/protos.d.ts b/packages/google-shopping-merchant-accounts/protos/protos.d.ts
new file mode 100644
index 00000000000..e71a3a36d77
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/protos.d.ts
@@ -0,0 +1,22362 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace shopping. */
+ namespace shopping {
+
+ /** Namespace merchant. */
+ namespace merchant {
+
+ /** Namespace accounts. */
+ namespace accounts {
+
+ /** Namespace v1beta. */
+ namespace v1beta {
+
+ /** AccessRight enum. */
+ enum AccessRight {
+ ACCESS_RIGHT_UNSPECIFIED = 0,
+ STANDARD = 1,
+ ADMIN = 2,
+ PERFORMANCE_REPORTING = 3
+ }
+
+ /** Represents an AccountTaxService */
+ class AccountTaxService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new AccountTaxService 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 AccountTaxService 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): AccountTaxService;
+
+ /**
+ * Calls GetAccountTax.
+ * @param request GetAccountTaxRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AccountTax
+ */
+ public getAccountTax(request: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest, callback: google.shopping.merchant.accounts.v1beta.AccountTaxService.GetAccountTaxCallback): void;
+
+ /**
+ * Calls GetAccountTax.
+ * @param request GetAccountTaxRequest message or plain object
+ * @returns Promise
+ */
+ public getAccountTax(request: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest): Promise;
+
+ /**
+ * Calls ListAccountTax.
+ * @param request ListAccountTaxRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAccountTaxResponse
+ */
+ public listAccountTax(request: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest, callback: google.shopping.merchant.accounts.v1beta.AccountTaxService.ListAccountTaxCallback): void;
+
+ /**
+ * Calls ListAccountTax.
+ * @param request ListAccountTaxRequest message or plain object
+ * @returns Promise
+ */
+ public listAccountTax(request: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest): Promise;
+
+ /**
+ * Calls UpdateAccountTax.
+ * @param request UpdateAccountTaxRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AccountTax
+ */
+ public updateAccountTax(request: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest, callback: google.shopping.merchant.accounts.v1beta.AccountTaxService.UpdateAccountTaxCallback): void;
+
+ /**
+ * Calls UpdateAccountTax.
+ * @param request UpdateAccountTaxRequest message or plain object
+ * @returns Promise
+ */
+ public updateAccountTax(request: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest): Promise;
+ }
+
+ namespace AccountTaxService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountTaxService|getAccountTax}.
+ * @param error Error, if any
+ * @param [response] AccountTax
+ */
+ type GetAccountTaxCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.AccountTax) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountTaxService|listAccountTax}.
+ * @param error Error, if any
+ * @param [response] ListAccountTaxResponse
+ */
+ type ListAccountTaxCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountTaxService|updateAccountTax}.
+ * @param error Error, if any
+ * @param [response] AccountTax
+ */
+ type UpdateAccountTaxCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.AccountTax) => void;
+ }
+
+ /** Properties of an AccountTax. */
+ interface IAccountTax {
+
+ /** AccountTax name */
+ name?: (string|null);
+
+ /** AccountTax account */
+ account?: (number|Long|string|null);
+
+ /** AccountTax taxRules */
+ taxRules?: (google.shopping.merchant.accounts.v1beta.ITaxRule[]|null);
+ }
+
+ /** Represents an AccountTax. */
+ class AccountTax implements IAccountTax {
+
+ /**
+ * Constructs a new AccountTax.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IAccountTax);
+
+ /** AccountTax name. */
+ public name: string;
+
+ /** AccountTax account. */
+ public account: (number|Long|string);
+
+ /** AccountTax taxRules. */
+ public taxRules: google.shopping.merchant.accounts.v1beta.ITaxRule[];
+
+ /**
+ * Creates a new AccountTax instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AccountTax instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IAccountTax): google.shopping.merchant.accounts.v1beta.AccountTax;
+
+ /**
+ * Encodes the specified AccountTax message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountTax.verify|verify} messages.
+ * @param message AccountTax message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IAccountTax, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AccountTax message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountTax.verify|verify} messages.
+ * @param message AccountTax message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IAccountTax, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AccountTax message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AccountTax
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.AccountTax;
+
+ /**
+ * Decodes an AccountTax message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AccountTax
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.AccountTax;
+
+ /**
+ * Verifies an AccountTax message.
+ * @param message Plain 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 AccountTax message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AccountTax
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.AccountTax;
+
+ /**
+ * Creates a plain object from an AccountTax message. Also converts values to other types if specified.
+ * @param message AccountTax
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.AccountTax, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AccountTax to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AccountTax
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAccountTaxRequest. */
+ interface IGetAccountTaxRequest {
+
+ /** GetAccountTaxRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetAccountTaxRequest. */
+ class GetAccountTaxRequest implements IGetAccountTaxRequest {
+
+ /**
+ * Constructs a new GetAccountTaxRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest);
+
+ /** GetAccountTaxRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetAccountTaxRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAccountTaxRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest): google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest;
+
+ /**
+ * Encodes the specified GetAccountTaxRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest.verify|verify} messages.
+ * @param message GetAccountTaxRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAccountTaxRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest.verify|verify} messages.
+ * @param message GetAccountTaxRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAccountTaxRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest;
+
+ /**
+ * Decodes a GetAccountTaxRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest;
+
+ /**
+ * Verifies a GetAccountTaxRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetAccountTaxRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAccountTaxRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest;
+
+ /**
+ * Creates a plain object from a GetAccountTaxRequest message. Also converts values to other types if specified.
+ * @param message GetAccountTaxRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAccountTaxRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAccountTaxRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateAccountTaxRequest. */
+ interface IUpdateAccountTaxRequest {
+
+ /** UpdateAccountTaxRequest accountTax */
+ accountTax?: (google.shopping.merchant.accounts.v1beta.IAccountTax|null);
+
+ /** UpdateAccountTaxRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateAccountTaxRequest. */
+ class UpdateAccountTaxRequest implements IUpdateAccountTaxRequest {
+
+ /**
+ * Constructs a new UpdateAccountTaxRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest);
+
+ /** UpdateAccountTaxRequest accountTax. */
+ public accountTax?: (google.shopping.merchant.accounts.v1beta.IAccountTax|null);
+
+ /** UpdateAccountTaxRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateAccountTaxRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateAccountTaxRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest): google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest;
+
+ /**
+ * Encodes the specified UpdateAccountTaxRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest.verify|verify} messages.
+ * @param message UpdateAccountTaxRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateAccountTaxRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest.verify|verify} messages.
+ * @param message UpdateAccountTaxRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateAccountTaxRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest;
+
+ /**
+ * Decodes an UpdateAccountTaxRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest;
+
+ /**
+ * Verifies an UpdateAccountTaxRequest message.
+ * @param message Plain 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 UpdateAccountTaxRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateAccountTaxRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest;
+
+ /**
+ * Creates a plain object from an UpdateAccountTaxRequest message. Also converts values to other types if specified.
+ * @param message UpdateAccountTaxRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateAccountTaxRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateAccountTaxRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAccountTaxRequest. */
+ interface IListAccountTaxRequest {
+
+ /** ListAccountTaxRequest parent */
+ parent?: (string|null);
+
+ /** ListAccountTaxRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAccountTaxRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListAccountTaxRequest. */
+ class ListAccountTaxRequest implements IListAccountTaxRequest {
+
+ /**
+ * Constructs a new ListAccountTaxRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest);
+
+ /** ListAccountTaxRequest parent. */
+ public parent: string;
+
+ /** ListAccountTaxRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAccountTaxRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListAccountTaxRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAccountTaxRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest): google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest;
+
+ /**
+ * Encodes the specified ListAccountTaxRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest.verify|verify} messages.
+ * @param message ListAccountTaxRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAccountTaxRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest.verify|verify} messages.
+ * @param message ListAccountTaxRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAccountTaxRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest;
+
+ /**
+ * Decodes a ListAccountTaxRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest;
+
+ /**
+ * Verifies a ListAccountTaxRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAccountTaxRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAccountTaxRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest;
+
+ /**
+ * Creates a plain object from a ListAccountTaxRequest message. Also converts values to other types if specified.
+ * @param message ListAccountTaxRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAccountTaxRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAccountTaxRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAccountTaxResponse. */
+ interface IListAccountTaxResponse {
+
+ /** ListAccountTaxResponse accountTaxes */
+ accountTaxes?: (google.shopping.merchant.accounts.v1beta.IAccountTax[]|null);
+
+ /** ListAccountTaxResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAccountTaxResponse. */
+ class ListAccountTaxResponse implements IListAccountTaxResponse {
+
+ /**
+ * Constructs a new ListAccountTaxResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse);
+
+ /** ListAccountTaxResponse accountTaxes. */
+ public accountTaxes: google.shopping.merchant.accounts.v1beta.IAccountTax[];
+
+ /** ListAccountTaxResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAccountTaxResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAccountTaxResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse): google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse;
+
+ /**
+ * Encodes the specified ListAccountTaxResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse.verify|verify} messages.
+ * @param message ListAccountTaxResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAccountTaxResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse.verify|verify} messages.
+ * @param message ListAccountTaxResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAccountTaxResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAccountTaxResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse;
+
+ /**
+ * Decodes a ListAccountTaxResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAccountTaxResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse;
+
+ /**
+ * Verifies a ListAccountTaxResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAccountTaxResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAccountTaxResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse;
+
+ /**
+ * Creates a plain object from a ListAccountTaxResponse message. Also converts values to other types if specified.
+ * @param message ListAccountTaxResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAccountTaxResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAccountTaxResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TaxRule. */
+ interface ITaxRule {
+
+ /** TaxRule locationId */
+ locationId?: (number|Long|string|null);
+
+ /** TaxRule postCodeRange */
+ postCodeRange?: (google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange|null);
+
+ /** TaxRule useGoogleRate */
+ useGoogleRate?: (boolean|null);
+
+ /** TaxRule selfSpecifiedRateMicros */
+ selfSpecifiedRateMicros?: (number|Long|string|null);
+
+ /** TaxRule regionCode */
+ regionCode?: (string|null);
+
+ /** TaxRule shippingTaxed */
+ shippingTaxed?: (boolean|null);
+
+ /** TaxRule effectiveTimePeriod */
+ effectiveTimePeriod?: (google.type.IInterval|null);
+ }
+
+ /** Represents a TaxRule. */
+ class TaxRule implements ITaxRule {
+
+ /**
+ * Constructs a new TaxRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ITaxRule);
+
+ /** TaxRule locationId. */
+ public locationId?: (number|Long|string|null);
+
+ /** TaxRule postCodeRange. */
+ public postCodeRange?: (google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange|null);
+
+ /** TaxRule useGoogleRate. */
+ public useGoogleRate?: (boolean|null);
+
+ /** TaxRule selfSpecifiedRateMicros. */
+ public selfSpecifiedRateMicros?: (number|Long|string|null);
+
+ /** TaxRule regionCode. */
+ public regionCode: string;
+
+ /** TaxRule shippingTaxed. */
+ public shippingTaxed: boolean;
+
+ /** TaxRule effectiveTimePeriod. */
+ public effectiveTimePeriod?: (google.type.IInterval|null);
+
+ /** TaxRule location. */
+ public location?: ("locationId"|"postCodeRange");
+
+ /** TaxRule rateCalculation. */
+ public rateCalculation?: ("useGoogleRate"|"selfSpecifiedRateMicros");
+
+ /**
+ * Creates a new TaxRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TaxRule instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ITaxRule): google.shopping.merchant.accounts.v1beta.TaxRule;
+
+ /**
+ * Encodes the specified TaxRule message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.verify|verify} messages.
+ * @param message TaxRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ITaxRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TaxRule message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.verify|verify} messages.
+ * @param message TaxRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ITaxRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TaxRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TaxRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.TaxRule;
+
+ /**
+ * Decodes a TaxRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TaxRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.TaxRule;
+
+ /**
+ * Verifies a TaxRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TaxRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TaxRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.TaxRule;
+
+ /**
+ * Creates a plain object from a TaxRule message. Also converts values to other types if specified.
+ * @param message TaxRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.TaxRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TaxRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TaxRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TaxRule {
+
+ /** Properties of a TaxPostalCodeRange. */
+ interface ITaxPostalCodeRange {
+
+ /** TaxPostalCodeRange start */
+ start?: (string|null);
+
+ /** TaxPostalCodeRange end */
+ end?: (string|null);
+ }
+
+ /** Represents a TaxPostalCodeRange. */
+ class TaxPostalCodeRange implements ITaxPostalCodeRange {
+
+ /**
+ * Constructs a new TaxPostalCodeRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange);
+
+ /** TaxPostalCodeRange start. */
+ public start: string;
+
+ /** TaxPostalCodeRange end. */
+ public end: string;
+
+ /**
+ * Creates a new TaxPostalCodeRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TaxPostalCodeRange instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange): google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange;
+
+ /**
+ * Encodes the specified TaxPostalCodeRange message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.verify|verify} messages.
+ * @param message TaxPostalCodeRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TaxPostalCodeRange message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.verify|verify} messages.
+ * @param message TaxPostalCodeRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TaxPostalCodeRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TaxPostalCodeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange;
+
+ /**
+ * Decodes a TaxPostalCodeRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TaxPostalCodeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange;
+
+ /**
+ * Verifies a TaxPostalCodeRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TaxPostalCodeRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TaxPostalCodeRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange;
+
+ /**
+ * Creates a plain object from a TaxPostalCodeRange message. Also converts values to other types if specified.
+ * @param message TaxPostalCodeRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TaxPostalCodeRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TaxPostalCodeRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents an AccountIssueService */
+ class AccountIssueService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new AccountIssueService 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 AccountIssueService 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): AccountIssueService;
+
+ /**
+ * Calls ListAccountIssues.
+ * @param request ListAccountIssuesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAccountIssuesResponse
+ */
+ public listAccountIssues(request: google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest, callback: google.shopping.merchant.accounts.v1beta.AccountIssueService.ListAccountIssuesCallback): void;
+
+ /**
+ * Calls ListAccountIssues.
+ * @param request ListAccountIssuesRequest message or plain object
+ * @returns Promise
+ */
+ public listAccountIssues(request: google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest): Promise;
+ }
+
+ namespace AccountIssueService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountIssueService|listAccountIssues}.
+ * @param error Error, if any
+ * @param [response] ListAccountIssuesResponse
+ */
+ type ListAccountIssuesCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse) => void;
+ }
+
+ /** Properties of an AccountIssue. */
+ interface IAccountIssue {
+
+ /** AccountIssue name */
+ name?: (string|null);
+
+ /** AccountIssue title */
+ title?: (string|null);
+
+ /** AccountIssue severity */
+ severity?: (google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|keyof typeof google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|null);
+
+ /** AccountIssue impactedDestinations */
+ impactedDestinations?: (google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination[]|null);
+
+ /** AccountIssue detail */
+ detail?: (string|null);
+
+ /** AccountIssue documentationUri */
+ documentationUri?: (string|null);
+ }
+
+ /** Represents an AccountIssue. */
+ class AccountIssue implements IAccountIssue {
+
+ /**
+ * Constructs a new AccountIssue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IAccountIssue);
+
+ /** AccountIssue name. */
+ public name: string;
+
+ /** AccountIssue title. */
+ public title: string;
+
+ /** AccountIssue severity. */
+ public severity: (google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|keyof typeof google.shopping.merchant.accounts.v1beta.AccountIssue.Severity);
+
+ /** AccountIssue impactedDestinations. */
+ public impactedDestinations: google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination[];
+
+ /** AccountIssue detail. */
+ public detail: string;
+
+ /** AccountIssue documentationUri. */
+ public documentationUri: string;
+
+ /**
+ * Creates a new AccountIssue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AccountIssue instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IAccountIssue): google.shopping.merchant.accounts.v1beta.AccountIssue;
+
+ /**
+ * Encodes the specified AccountIssue message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.verify|verify} messages.
+ * @param message AccountIssue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IAccountIssue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AccountIssue message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.verify|verify} messages.
+ * @param message AccountIssue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IAccountIssue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AccountIssue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AccountIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.AccountIssue;
+
+ /**
+ * Decodes an AccountIssue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AccountIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.AccountIssue;
+
+ /**
+ * Verifies an AccountIssue message.
+ * @param message Plain 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 AccountIssue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AccountIssue
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.AccountIssue;
+
+ /**
+ * Creates a plain object from an AccountIssue message. Also converts values to other types if specified.
+ * @param message AccountIssue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.AccountIssue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AccountIssue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AccountIssue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AccountIssue {
+
+ /** Properties of an ImpactedDestination. */
+ interface IImpactedDestination {
+
+ /** ImpactedDestination reportingContext */
+ reportingContext?: (google.shopping.type.ReportingContext.ReportingContextEnum|keyof typeof google.shopping.type.ReportingContext.ReportingContextEnum|null);
+
+ /** ImpactedDestination impacts */
+ impacts?: (google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact[]|null);
+ }
+
+ /** Represents an ImpactedDestination. */
+ class ImpactedDestination implements IImpactedDestination {
+
+ /**
+ * Constructs a new ImpactedDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination);
+
+ /** ImpactedDestination reportingContext. */
+ public reportingContext?: (google.shopping.type.ReportingContext.ReportingContextEnum|keyof typeof google.shopping.type.ReportingContext.ReportingContextEnum|null);
+
+ /** ImpactedDestination impacts. */
+ public impacts: google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact[];
+
+ /** ImpactedDestination _reportingContext. */
+ public _reportingContext?: "reportingContext";
+
+ /**
+ * Creates a new ImpactedDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImpactedDestination instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination;
+
+ /**
+ * Encodes the specified ImpactedDestination message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.verify|verify} messages.
+ * @param message ImpactedDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImpactedDestination message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.verify|verify} messages.
+ * @param message ImpactedDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImpactedDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImpactedDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination;
+
+ /**
+ * Decodes an ImpactedDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImpactedDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination;
+
+ /**
+ * Verifies an ImpactedDestination message.
+ * @param message Plain 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 ImpactedDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImpactedDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination;
+
+ /**
+ * Creates a plain object from an ImpactedDestination message. Also converts values to other types if specified.
+ * @param message ImpactedDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImpactedDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImpactedDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ImpactedDestination {
+
+ /** Properties of an Impact. */
+ interface IImpact {
+
+ /** Impact regionCode */
+ regionCode?: (string|null);
+
+ /** Impact severity */
+ severity?: (google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|keyof typeof google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|null);
+ }
+
+ /** Represents an Impact. */
+ class Impact implements IImpact {
+
+ /**
+ * Constructs a new Impact.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact);
+
+ /** Impact regionCode. */
+ public regionCode: string;
+
+ /** Impact severity. */
+ public severity: (google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|keyof typeof google.shopping.merchant.accounts.v1beta.AccountIssue.Severity);
+
+ /**
+ * Creates a new Impact instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Impact instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact;
+
+ /**
+ * Encodes the specified Impact message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.verify|verify} messages.
+ * @param message Impact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Impact message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.verify|verify} messages.
+ * @param message Impact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Impact message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Impact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact;
+
+ /**
+ * Decodes an Impact message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Impact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact;
+
+ /**
+ * Verifies an Impact message.
+ * @param message Plain 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 Impact message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Impact
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact;
+
+ /**
+ * Creates a plain object from an Impact message. Also converts values to other types if specified.
+ * @param message Impact
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Impact to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Impact
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Severity enum. */
+ enum Severity {
+ SEVERITY_UNSPECIFIED = 0,
+ CRITICAL = 1,
+ ERROR = 2,
+ SUGGESTION = 3
+ }
+ }
+
+ /** Properties of a ListAccountIssuesRequest. */
+ interface IListAccountIssuesRequest {
+
+ /** ListAccountIssuesRequest parent */
+ parent?: (string|null);
+
+ /** ListAccountIssuesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAccountIssuesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListAccountIssuesRequest languageCode */
+ languageCode?: (string|null);
+
+ /** ListAccountIssuesRequest timeZone */
+ timeZone?: (google.type.ITimeZone|null);
+ }
+
+ /** Represents a ListAccountIssuesRequest. */
+ class ListAccountIssuesRequest implements IListAccountIssuesRequest {
+
+ /**
+ * Constructs a new ListAccountIssuesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest);
+
+ /** ListAccountIssuesRequest parent. */
+ public parent: string;
+
+ /** ListAccountIssuesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAccountIssuesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListAccountIssuesRequest languageCode. */
+ public languageCode: string;
+
+ /** ListAccountIssuesRequest timeZone. */
+ public timeZone?: (google.type.ITimeZone|null);
+
+ /**
+ * Creates a new ListAccountIssuesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAccountIssuesRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest): google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest;
+
+ /**
+ * Encodes the specified ListAccountIssuesRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest.verify|verify} messages.
+ * @param message ListAccountIssuesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAccountIssuesRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest.verify|verify} messages.
+ * @param message ListAccountIssuesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAccountIssuesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAccountIssuesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest;
+
+ /**
+ * Decodes a ListAccountIssuesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAccountIssuesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest;
+
+ /**
+ * Verifies a ListAccountIssuesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAccountIssuesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAccountIssuesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest;
+
+ /**
+ * Creates a plain object from a ListAccountIssuesRequest message. Also converts values to other types if specified.
+ * @param message ListAccountIssuesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAccountIssuesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAccountIssuesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAccountIssuesResponse. */
+ interface IListAccountIssuesResponse {
+
+ /** ListAccountIssuesResponse accountIssues */
+ accountIssues?: (google.shopping.merchant.accounts.v1beta.IAccountIssue[]|null);
+
+ /** ListAccountIssuesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAccountIssuesResponse. */
+ class ListAccountIssuesResponse implements IListAccountIssuesResponse {
+
+ /**
+ * Constructs a new ListAccountIssuesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse);
+
+ /** ListAccountIssuesResponse accountIssues. */
+ public accountIssues: google.shopping.merchant.accounts.v1beta.IAccountIssue[];
+
+ /** ListAccountIssuesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAccountIssuesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAccountIssuesResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse): google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse;
+
+ /**
+ * Encodes the specified ListAccountIssuesResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse.verify|verify} messages.
+ * @param message ListAccountIssuesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAccountIssuesResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse.verify|verify} messages.
+ * @param message ListAccountIssuesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAccountIssuesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAccountIssuesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse;
+
+ /**
+ * Decodes a ListAccountIssuesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAccountIssuesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse;
+
+ /**
+ * Verifies a ListAccountIssuesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAccountIssuesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAccountIssuesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse;
+
+ /**
+ * Creates a plain object from a ListAccountIssuesResponse message. Also converts values to other types if specified.
+ * @param message ListAccountIssuesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAccountIssuesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAccountIssuesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an AccountsService */
+ class AccountsService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new AccountsService 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 AccountsService 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): AccountsService;
+
+ /**
+ * Calls GetAccount.
+ * @param request GetAccountRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Account
+ */
+ public getAccount(request: google.shopping.merchant.accounts.v1beta.IGetAccountRequest, callback: google.shopping.merchant.accounts.v1beta.AccountsService.GetAccountCallback): void;
+
+ /**
+ * Calls GetAccount.
+ * @param request GetAccountRequest message or plain object
+ * @returns Promise
+ */
+ public getAccount(request: google.shopping.merchant.accounts.v1beta.IGetAccountRequest): Promise;
+
+ /**
+ * Calls CreateAndConfigureAccount.
+ * @param request CreateAndConfigureAccountRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Account
+ */
+ public createAndConfigureAccount(request: google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest, callback: google.shopping.merchant.accounts.v1beta.AccountsService.CreateAndConfigureAccountCallback): void;
+
+ /**
+ * Calls CreateAndConfigureAccount.
+ * @param request CreateAndConfigureAccountRequest message or plain object
+ * @returns Promise
+ */
+ public createAndConfigureAccount(request: google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest): Promise;
+
+ /**
+ * Calls DeleteAccount.
+ * @param request DeleteAccountRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteAccount(request: google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest, callback: google.shopping.merchant.accounts.v1beta.AccountsService.DeleteAccountCallback): void;
+
+ /**
+ * Calls DeleteAccount.
+ * @param request DeleteAccountRequest message or plain object
+ * @returns Promise
+ */
+ public deleteAccount(request: google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest): Promise;
+
+ /**
+ * Calls UpdateAccount.
+ * @param request UpdateAccountRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Account
+ */
+ public updateAccount(request: google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest, callback: google.shopping.merchant.accounts.v1beta.AccountsService.UpdateAccountCallback): void;
+
+ /**
+ * Calls UpdateAccount.
+ * @param request UpdateAccountRequest message or plain object
+ * @returns Promise
+ */
+ public updateAccount(request: google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest): Promise;
+
+ /**
+ * Calls ListAccounts.
+ * @param request ListAccountsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAccountsResponse
+ */
+ public listAccounts(request: google.shopping.merchant.accounts.v1beta.IListAccountsRequest, callback: google.shopping.merchant.accounts.v1beta.AccountsService.ListAccountsCallback): void;
+
+ /**
+ * Calls ListAccounts.
+ * @param request ListAccountsRequest message or plain object
+ * @returns Promise
+ */
+ public listAccounts(request: google.shopping.merchant.accounts.v1beta.IListAccountsRequest): Promise;
+
+ /**
+ * Calls ListSubAccounts.
+ * @param request ListSubAccountsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListSubAccountsResponse
+ */
+ public listSubAccounts(request: google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest, callback: google.shopping.merchant.accounts.v1beta.AccountsService.ListSubAccountsCallback): void;
+
+ /**
+ * Calls ListSubAccounts.
+ * @param request ListSubAccountsRequest message or plain object
+ * @returns Promise
+ */
+ public listSubAccounts(request: google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest): Promise;
+ }
+
+ namespace AccountsService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|getAccount}.
+ * @param error Error, if any
+ * @param [response] Account
+ */
+ type GetAccountCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Account) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|createAndConfigureAccount}.
+ * @param error Error, if any
+ * @param [response] Account
+ */
+ type CreateAndConfigureAccountCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Account) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|deleteAccount}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteAccountCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|updateAccount}.
+ * @param error Error, if any
+ * @param [response] Account
+ */
+ type UpdateAccountCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Account) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|listAccounts}.
+ * @param error Error, if any
+ * @param [response] ListAccountsResponse
+ */
+ type ListAccountsCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListAccountsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|listSubAccounts}.
+ * @param error Error, if any
+ * @param [response] ListSubAccountsResponse
+ */
+ type ListSubAccountsCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse) => void;
+ }
+
+ /** Properties of an Account. */
+ interface IAccount {
+
+ /** Account name */
+ name?: (string|null);
+
+ /** Account accountId */
+ accountId?: (number|Long|string|null);
+
+ /** Account accountName */
+ accountName?: (string|null);
+
+ /** Account adultContent */
+ adultContent?: (boolean|null);
+
+ /** Account testAccount */
+ testAccount?: (boolean|null);
+
+ /** Account timeZone */
+ timeZone?: (google.type.ITimeZone|null);
+
+ /** Account languageCode */
+ languageCode?: (string|null);
+ }
+
+ /** Represents an Account. */
+ class Account implements IAccount {
+
+ /**
+ * Constructs a new Account.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IAccount);
+
+ /** Account name. */
+ public name: string;
+
+ /** Account accountId. */
+ public accountId: (number|Long|string);
+
+ /** Account accountName. */
+ public accountName: string;
+
+ /** Account adultContent. */
+ public adultContent: boolean;
+
+ /** Account testAccount. */
+ public testAccount: boolean;
+
+ /** Account timeZone. */
+ public timeZone?: (google.type.ITimeZone|null);
+
+ /** Account languageCode. */
+ public languageCode: string;
+
+ /**
+ * Creates a new Account instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Account instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IAccount): google.shopping.merchant.accounts.v1beta.Account;
+
+ /**
+ * Encodes the specified Account message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Account.verify|verify} messages.
+ * @param message Account message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Account message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Account.verify|verify} messages.
+ * @param message Account message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Account message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Account
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Account;
+
+ /**
+ * Decodes an Account message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Account
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Account;
+
+ /**
+ * Verifies an Account message.
+ * @param message Plain 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 Account message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Account
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Account;
+
+ /**
+ * Creates a plain object from an Account message. Also converts values to other types if specified.
+ * @param message Account
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Account, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Account to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Account
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAccountRequest. */
+ interface IGetAccountRequest {
+
+ /** GetAccountRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetAccountRequest. */
+ class GetAccountRequest implements IGetAccountRequest {
+
+ /**
+ * Constructs a new GetAccountRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetAccountRequest);
+
+ /** GetAccountRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetAccountRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAccountRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetAccountRequest): google.shopping.merchant.accounts.v1beta.GetAccountRequest;
+
+ /**
+ * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountRequest.verify|verify} messages.
+ * @param message GetAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountRequest.verify|verify} messages.
+ * @param message GetAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAccountRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetAccountRequest;
+
+ /**
+ * Decodes a GetAccountRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetAccountRequest;
+
+ /**
+ * Verifies a GetAccountRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAccountRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetAccountRequest;
+
+ /**
+ * Creates a plain object from a GetAccountRequest message. Also converts values to other types if specified.
+ * @param message GetAccountRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAccountRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAccountRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateAndConfigureAccountRequest. */
+ interface ICreateAndConfigureAccountRequest {
+
+ /** CreateAndConfigureAccountRequest account */
+ account?: (google.shopping.merchant.accounts.v1beta.IAccount|null);
+
+ /** CreateAndConfigureAccountRequest users */
+ users?: (google.shopping.merchant.accounts.v1beta.ICreateUserRequest[]|null);
+
+ /** CreateAndConfigureAccountRequest acceptTermsOfService */
+ acceptTermsOfService?: (google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService|null);
+
+ /** CreateAndConfigureAccountRequest service */
+ service?: (google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService[]|null);
+ }
+
+ /** Represents a CreateAndConfigureAccountRequest. */
+ class CreateAndConfigureAccountRequest implements ICreateAndConfigureAccountRequest {
+
+ /**
+ * Constructs a new CreateAndConfigureAccountRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest);
+
+ /** CreateAndConfigureAccountRequest account. */
+ public account?: (google.shopping.merchant.accounts.v1beta.IAccount|null);
+
+ /** CreateAndConfigureAccountRequest users. */
+ public users: google.shopping.merchant.accounts.v1beta.ICreateUserRequest[];
+
+ /** CreateAndConfigureAccountRequest acceptTermsOfService. */
+ public acceptTermsOfService?: (google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService|null);
+
+ /** CreateAndConfigureAccountRequest service. */
+ public service: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService[];
+
+ /** CreateAndConfigureAccountRequest _acceptTermsOfService. */
+ public _acceptTermsOfService?: "acceptTermsOfService";
+
+ /**
+ * Creates a new CreateAndConfigureAccountRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateAndConfigureAccountRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest;
+
+ /**
+ * Encodes the specified CreateAndConfigureAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.verify|verify} messages.
+ * @param message CreateAndConfigureAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateAndConfigureAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.verify|verify} messages.
+ * @param message CreateAndConfigureAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateAndConfigureAccountRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateAndConfigureAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest;
+
+ /**
+ * Decodes a CreateAndConfigureAccountRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateAndConfigureAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest;
+
+ /**
+ * Verifies a CreateAndConfigureAccountRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateAndConfigureAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateAndConfigureAccountRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest;
+
+ /**
+ * Creates a plain object from a CreateAndConfigureAccountRequest message. Also converts values to other types if specified.
+ * @param message CreateAndConfigureAccountRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateAndConfigureAccountRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateAndConfigureAccountRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CreateAndConfigureAccountRequest {
+
+ /** Properties of an AcceptTermsOfService. */
+ interface IAcceptTermsOfService {
+
+ /** AcceptTermsOfService name */
+ name?: (string|null);
+
+ /** AcceptTermsOfService regionCode */
+ regionCode?: (string|null);
+ }
+
+ /** Represents an AcceptTermsOfService. */
+ class AcceptTermsOfService implements IAcceptTermsOfService {
+
+ /**
+ * Constructs a new AcceptTermsOfService.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService);
+
+ /** AcceptTermsOfService name. */
+ public name: string;
+
+ /** AcceptTermsOfService regionCode. */
+ public regionCode: string;
+
+ /**
+ * Creates a new AcceptTermsOfService instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AcceptTermsOfService instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService;
+
+ /**
+ * Encodes the specified AcceptTermsOfService message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.verify|verify} messages.
+ * @param message AcceptTermsOfService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AcceptTermsOfService message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.verify|verify} messages.
+ * @param message AcceptTermsOfService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AcceptTermsOfService message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AcceptTermsOfService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService;
+
+ /**
+ * Decodes an AcceptTermsOfService message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AcceptTermsOfService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService;
+
+ /**
+ * Verifies an AcceptTermsOfService message.
+ * @param message Plain 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 AcceptTermsOfService message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AcceptTermsOfService
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService;
+
+ /**
+ * Creates a plain object from an AcceptTermsOfService message. Also converts values to other types if specified.
+ * @param message AcceptTermsOfService
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AcceptTermsOfService to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AcceptTermsOfService
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AddAccountService. */
+ interface IAddAccountService {
+
+ /** AddAccountService accountAggregation */
+ accountAggregation?: (google.protobuf.IEmpty|null);
+
+ /** AddAccountService provider */
+ provider?: (string|null);
+ }
+
+ /** Represents an AddAccountService. */
+ class AddAccountService implements IAddAccountService {
+
+ /**
+ * Constructs a new AddAccountService.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService);
+
+ /** AddAccountService accountAggregation. */
+ public accountAggregation?: (google.protobuf.IEmpty|null);
+
+ /** AddAccountService provider. */
+ public provider?: (string|null);
+
+ /** AddAccountService serviceType. */
+ public serviceType?: "accountAggregation";
+
+ /** AddAccountService _provider. */
+ public _provider?: "provider";
+
+ /**
+ * Creates a new AddAccountService instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AddAccountService instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService;
+
+ /**
+ * Encodes the specified AddAccountService message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.verify|verify} messages.
+ * @param message AddAccountService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AddAccountService message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.verify|verify} messages.
+ * @param message AddAccountService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AddAccountService message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AddAccountService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService;
+
+ /**
+ * Decodes an AddAccountService message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AddAccountService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService;
+
+ /**
+ * Verifies an AddAccountService message.
+ * @param message Plain 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 AddAccountService message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AddAccountService
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService;
+
+ /**
+ * Creates a plain object from an AddAccountService message. Also converts values to other types if specified.
+ * @param message AddAccountService
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AddAccountService to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AddAccountService
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DeleteAccountRequest. */
+ interface IDeleteAccountRequest {
+
+ /** DeleteAccountRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteAccountRequest. */
+ class DeleteAccountRequest implements IDeleteAccountRequest {
+
+ /**
+ * Constructs a new DeleteAccountRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest);
+
+ /** DeleteAccountRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteAccountRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteAccountRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest): google.shopping.merchant.accounts.v1beta.DeleteAccountRequest;
+
+ /**
+ * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteAccountRequest.verify|verify} messages.
+ * @param message DeleteAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteAccountRequest.verify|verify} messages.
+ * @param message DeleteAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteAccountRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.DeleteAccountRequest;
+
+ /**
+ * Decodes a DeleteAccountRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.DeleteAccountRequest;
+
+ /**
+ * Verifies a DeleteAccountRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteAccountRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.DeleteAccountRequest;
+
+ /**
+ * Creates a plain object from a DeleteAccountRequest message. Also converts values to other types if specified.
+ * @param message DeleteAccountRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.DeleteAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteAccountRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteAccountRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateAccountRequest. */
+ interface IUpdateAccountRequest {
+
+ /** UpdateAccountRequest account */
+ account?: (google.shopping.merchant.accounts.v1beta.IAccount|null);
+
+ /** UpdateAccountRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateAccountRequest. */
+ class UpdateAccountRequest implements IUpdateAccountRequest {
+
+ /**
+ * Constructs a new UpdateAccountRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest);
+
+ /** UpdateAccountRequest account. */
+ public account?: (google.shopping.merchant.accounts.v1beta.IAccount|null);
+
+ /** UpdateAccountRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateAccountRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateAccountRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest): google.shopping.merchant.accounts.v1beta.UpdateAccountRequest;
+
+ /**
+ * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.verify|verify} messages.
+ * @param message UpdateAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.verify|verify} messages.
+ * @param message UpdateAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateAccountRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateAccountRequest;
+
+ /**
+ * Decodes an UpdateAccountRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateAccountRequest;
+
+ /**
+ * Verifies an UpdateAccountRequest message.
+ * @param message Plain 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 UpdateAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateAccountRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateAccountRequest;
+
+ /**
+ * Creates a plain object from an UpdateAccountRequest message. Also converts values to other types if specified.
+ * @param message UpdateAccountRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateAccountRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateAccountRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAccountsRequest. */
+ interface IListAccountsRequest {
+
+ /** ListAccountsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAccountsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListAccountsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListAccountsRequest. */
+ class ListAccountsRequest implements IListAccountsRequest {
+
+ /**
+ * Constructs a new ListAccountsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListAccountsRequest);
+
+ /** ListAccountsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAccountsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListAccountsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListAccountsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAccountsRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListAccountsRequest): google.shopping.merchant.accounts.v1beta.ListAccountsRequest;
+
+ /**
+ * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsRequest.verify|verify} messages.
+ * @param message ListAccountsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsRequest.verify|verify} messages.
+ * @param message ListAccountsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAccountsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListAccountsRequest;
+
+ /**
+ * Decodes a ListAccountsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListAccountsRequest;
+
+ /**
+ * Verifies a ListAccountsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAccountsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListAccountsRequest;
+
+ /**
+ * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified.
+ * @param message ListAccountsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListAccountsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAccountsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAccountsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAccountsResponse. */
+ interface IListAccountsResponse {
+
+ /** ListAccountsResponse accounts */
+ accounts?: (google.shopping.merchant.accounts.v1beta.IAccount[]|null);
+
+ /** ListAccountsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAccountsResponse. */
+ class ListAccountsResponse implements IListAccountsResponse {
+
+ /**
+ * Constructs a new ListAccountsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListAccountsResponse);
+
+ /** ListAccountsResponse accounts. */
+ public accounts: google.shopping.merchant.accounts.v1beta.IAccount[];
+
+ /** ListAccountsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAccountsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAccountsResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListAccountsResponse): google.shopping.merchant.accounts.v1beta.ListAccountsResponse;
+
+ /**
+ * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsResponse.verify|verify} messages.
+ * @param message ListAccountsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAccountsResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsResponse.verify|verify} messages.
+ * @param message ListAccountsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAccountsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListAccountsResponse;
+
+ /**
+ * Decodes a ListAccountsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListAccountsResponse;
+
+ /**
+ * Verifies a ListAccountsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAccountsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAccountsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListAccountsResponse;
+
+ /**
+ * Creates a plain object from a ListAccountsResponse message. Also converts values to other types if specified.
+ * @param message ListAccountsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListAccountsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAccountsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAccountsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSubAccountsRequest. */
+ interface IListSubAccountsRequest {
+
+ /** ListSubAccountsRequest provider */
+ provider?: (string|null);
+
+ /** ListSubAccountsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListSubAccountsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListSubAccountsRequest. */
+ class ListSubAccountsRequest implements IListSubAccountsRequest {
+
+ /**
+ * Constructs a new ListSubAccountsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest);
+
+ /** ListSubAccountsRequest provider. */
+ public provider: string;
+
+ /** ListSubAccountsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListSubAccountsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListSubAccountsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSubAccountsRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest): google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest;
+
+ /**
+ * Encodes the specified ListSubAccountsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest.verify|verify} messages.
+ * @param message ListSubAccountsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSubAccountsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest.verify|verify} messages.
+ * @param message ListSubAccountsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSubAccountsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSubAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest;
+
+ /**
+ * Decodes a ListSubAccountsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSubAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest;
+
+ /**
+ * Verifies a ListSubAccountsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSubAccountsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSubAccountsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest;
+
+ /**
+ * Creates a plain object from a ListSubAccountsRequest message. Also converts values to other types if specified.
+ * @param message ListSubAccountsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSubAccountsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSubAccountsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSubAccountsResponse. */
+ interface IListSubAccountsResponse {
+
+ /** ListSubAccountsResponse accounts */
+ accounts?: (google.shopping.merchant.accounts.v1beta.IAccount[]|null);
+
+ /** ListSubAccountsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListSubAccountsResponse. */
+ class ListSubAccountsResponse implements IListSubAccountsResponse {
+
+ /**
+ * Constructs a new ListSubAccountsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse);
+
+ /** ListSubAccountsResponse accounts. */
+ public accounts: google.shopping.merchant.accounts.v1beta.IAccount[];
+
+ /** ListSubAccountsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListSubAccountsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSubAccountsResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse): google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse;
+
+ /**
+ * Encodes the specified ListSubAccountsResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse.verify|verify} messages.
+ * @param message ListSubAccountsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSubAccountsResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse.verify|verify} messages.
+ * @param message ListSubAccountsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSubAccountsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSubAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse;
+
+ /**
+ * Decodes a ListSubAccountsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSubAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse;
+
+ /**
+ * Verifies a ListSubAccountsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSubAccountsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSubAccountsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse;
+
+ /**
+ * Creates a plain object from a ListSubAccountsResponse message. Also converts values to other types if specified.
+ * @param message ListSubAccountsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSubAccountsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSubAccountsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a UserService */
+ class UserService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new UserService 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 UserService 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): UserService;
+
+ /**
+ * Calls GetUser.
+ * @param request GetUserRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and User
+ */
+ public getUser(request: google.shopping.merchant.accounts.v1beta.IGetUserRequest, callback: google.shopping.merchant.accounts.v1beta.UserService.GetUserCallback): void;
+
+ /**
+ * Calls GetUser.
+ * @param request GetUserRequest message or plain object
+ * @returns Promise
+ */
+ public getUser(request: google.shopping.merchant.accounts.v1beta.IGetUserRequest): Promise;
+
+ /**
+ * Calls CreateUser.
+ * @param request CreateUserRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and User
+ */
+ public createUser(request: google.shopping.merchant.accounts.v1beta.ICreateUserRequest, callback: google.shopping.merchant.accounts.v1beta.UserService.CreateUserCallback): void;
+
+ /**
+ * Calls CreateUser.
+ * @param request CreateUserRequest message or plain object
+ * @returns Promise
+ */
+ public createUser(request: google.shopping.merchant.accounts.v1beta.ICreateUserRequest): Promise;
+
+ /**
+ * Calls DeleteUser.
+ * @param request DeleteUserRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteUser(request: google.shopping.merchant.accounts.v1beta.IDeleteUserRequest, callback: google.shopping.merchant.accounts.v1beta.UserService.DeleteUserCallback): void;
+
+ /**
+ * Calls DeleteUser.
+ * @param request DeleteUserRequest message or plain object
+ * @returns Promise
+ */
+ public deleteUser(request: google.shopping.merchant.accounts.v1beta.IDeleteUserRequest): Promise;
+
+ /**
+ * Calls UpdateUser.
+ * @param request UpdateUserRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and User
+ */
+ public updateUser(request: google.shopping.merchant.accounts.v1beta.IUpdateUserRequest, callback: google.shopping.merchant.accounts.v1beta.UserService.UpdateUserCallback): void;
+
+ /**
+ * Calls UpdateUser.
+ * @param request UpdateUserRequest message or plain object
+ * @returns Promise
+ */
+ public updateUser(request: google.shopping.merchant.accounts.v1beta.IUpdateUserRequest): Promise;
+
+ /**
+ * Calls ListUsers.
+ * @param request ListUsersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListUsersResponse
+ */
+ public listUsers(request: google.shopping.merchant.accounts.v1beta.IListUsersRequest, callback: google.shopping.merchant.accounts.v1beta.UserService.ListUsersCallback): void;
+
+ /**
+ * Calls ListUsers.
+ * @param request ListUsersRequest message or plain object
+ * @returns Promise
+ */
+ public listUsers(request: google.shopping.merchant.accounts.v1beta.IListUsersRequest): Promise;
+ }
+
+ namespace UserService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|getUser}.
+ * @param error Error, if any
+ * @param [response] User
+ */
+ type GetUserCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.User) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|createUser}.
+ * @param error Error, if any
+ * @param [response] User
+ */
+ type CreateUserCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.User) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|deleteUser}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteUserCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|updateUser}.
+ * @param error Error, if any
+ * @param [response] User
+ */
+ type UpdateUserCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.User) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|listUsers}.
+ * @param error Error, if any
+ * @param [response] ListUsersResponse
+ */
+ type ListUsersCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListUsersResponse) => void;
+ }
+
+ /** Properties of a User. */
+ interface IUser {
+
+ /** User name */
+ name?: (string|null);
+
+ /** User state */
+ state?: (google.shopping.merchant.accounts.v1beta.User.State|keyof typeof google.shopping.merchant.accounts.v1beta.User.State|null);
+
+ /** User accessRights */
+ accessRights?: (google.shopping.merchant.accounts.v1beta.AccessRight[]|null);
+ }
+
+ /** Represents a User. */
+ class User implements IUser {
+
+ /**
+ * Constructs a new User.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUser);
+
+ /** User name. */
+ public name: string;
+
+ /** User state. */
+ public state: (google.shopping.merchant.accounts.v1beta.User.State|keyof typeof google.shopping.merchant.accounts.v1beta.User.State);
+
+ /** User accessRights. */
+ public accessRights: google.shopping.merchant.accounts.v1beta.AccessRight[];
+
+ /**
+ * Creates a new User instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns User instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUser): google.shopping.merchant.accounts.v1beta.User;
+
+ /**
+ * Encodes the specified User message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.User.verify|verify} messages.
+ * @param message User message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified User message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.User.verify|verify} messages.
+ * @param message User message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a User message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns User
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.User;
+
+ /**
+ * Decodes a User message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns User
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.User;
+
+ /**
+ * Verifies a User message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a User message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns User
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.User;
+
+ /**
+ * Creates a plain object from a User message. Also converts values to other types if specified.
+ * @param message User
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this User to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for User
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace User {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ VERIFIED = 2
+ }
+ }
+
+ /** Properties of a GetUserRequest. */
+ interface IGetUserRequest {
+
+ /** GetUserRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetUserRequest. */
+ class GetUserRequest implements IGetUserRequest {
+
+ /**
+ * Constructs a new GetUserRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetUserRequest);
+
+ /** GetUserRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetUserRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetUserRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetUserRequest): google.shopping.merchant.accounts.v1beta.GetUserRequest;
+
+ /**
+ * Encodes the specified GetUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetUserRequest.verify|verify} messages.
+ * @param message GetUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetUserRequest.verify|verify} messages.
+ * @param message GetUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetUserRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetUserRequest;
+
+ /**
+ * Decodes a GetUserRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetUserRequest;
+
+ /**
+ * Verifies a GetUserRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetUserRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetUserRequest;
+
+ /**
+ * Creates a plain object from a GetUserRequest message. Also converts values to other types if specified.
+ * @param message GetUserRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetUserRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetUserRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateUserRequest. */
+ interface ICreateUserRequest {
+
+ /** CreateUserRequest parent */
+ parent?: (string|null);
+
+ /** CreateUserRequest userId */
+ userId?: (string|null);
+
+ /** CreateUserRequest user */
+ user?: (google.shopping.merchant.accounts.v1beta.IUser|null);
+ }
+
+ /** Represents a CreateUserRequest. */
+ class CreateUserRequest implements ICreateUserRequest {
+
+ /**
+ * Constructs a new CreateUserRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ICreateUserRequest);
+
+ /** CreateUserRequest parent. */
+ public parent: string;
+
+ /** CreateUserRequest userId. */
+ public userId: string;
+
+ /** CreateUserRequest user. */
+ public user?: (google.shopping.merchant.accounts.v1beta.IUser|null);
+
+ /**
+ * Creates a new CreateUserRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateUserRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ICreateUserRequest): google.shopping.merchant.accounts.v1beta.CreateUserRequest;
+
+ /**
+ * Encodes the specified CreateUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateUserRequest.verify|verify} messages.
+ * @param message CreateUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ICreateUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateUserRequest.verify|verify} messages.
+ * @param message CreateUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ICreateUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateUserRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CreateUserRequest;
+
+ /**
+ * Decodes a CreateUserRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CreateUserRequest;
+
+ /**
+ * Verifies a CreateUserRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateUserRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CreateUserRequest;
+
+ /**
+ * Creates a plain object from a CreateUserRequest message. Also converts values to other types if specified.
+ * @param message CreateUserRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CreateUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateUserRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateUserRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteUserRequest. */
+ interface IDeleteUserRequest {
+
+ /** DeleteUserRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteUserRequest. */
+ class DeleteUserRequest implements IDeleteUserRequest {
+
+ /**
+ * Constructs a new DeleteUserRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IDeleteUserRequest);
+
+ /** DeleteUserRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteUserRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteUserRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IDeleteUserRequest): google.shopping.merchant.accounts.v1beta.DeleteUserRequest;
+
+ /**
+ * Encodes the specified DeleteUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteUserRequest.verify|verify} messages.
+ * @param message DeleteUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteUserRequest.verify|verify} messages.
+ * @param message DeleteUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteUserRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.DeleteUserRequest;
+
+ /**
+ * Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.DeleteUserRequest;
+
+ /**
+ * Verifies a DeleteUserRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteUserRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.DeleteUserRequest;
+
+ /**
+ * Creates a plain object from a DeleteUserRequest message. Also converts values to other types if specified.
+ * @param message DeleteUserRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.DeleteUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteUserRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteUserRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateUserRequest. */
+ interface IUpdateUserRequest {
+
+ /** UpdateUserRequest user */
+ user?: (google.shopping.merchant.accounts.v1beta.IUser|null);
+
+ /** UpdateUserRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateUserRequest. */
+ class UpdateUserRequest implements IUpdateUserRequest {
+
+ /**
+ * Constructs a new UpdateUserRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateUserRequest);
+
+ /** UpdateUserRequest user. */
+ public user?: (google.shopping.merchant.accounts.v1beta.IUser|null);
+
+ /** UpdateUserRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateUserRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateUserRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateUserRequest): google.shopping.merchant.accounts.v1beta.UpdateUserRequest;
+
+ /**
+ * Encodes the specified UpdateUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateUserRequest.verify|verify} messages.
+ * @param message UpdateUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateUserRequest.verify|verify} messages.
+ * @param message UpdateUserRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateUserRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateUserRequest;
+
+ /**
+ * Decodes an UpdateUserRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateUserRequest;
+
+ /**
+ * Verifies an UpdateUserRequest message.
+ * @param message Plain 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 UpdateUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateUserRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateUserRequest;
+
+ /**
+ * Creates a plain object from an UpdateUserRequest message. Also converts values to other types if specified.
+ * @param message UpdateUserRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateUserRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateUserRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListUsersRequest. */
+ interface IListUsersRequest {
+
+ /** ListUsersRequest parent */
+ parent?: (string|null);
+
+ /** ListUsersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListUsersRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListUsersRequest. */
+ class ListUsersRequest implements IListUsersRequest {
+
+ /**
+ * Constructs a new ListUsersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListUsersRequest);
+
+ /** ListUsersRequest parent. */
+ public parent: string;
+
+ /** ListUsersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListUsersRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListUsersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListUsersRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListUsersRequest): google.shopping.merchant.accounts.v1beta.ListUsersRequest;
+
+ /**
+ * Encodes the specified ListUsersRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersRequest.verify|verify} messages.
+ * @param message ListUsersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListUsersRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersRequest.verify|verify} messages.
+ * @param message ListUsersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListUsersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListUsersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListUsersRequest;
+
+ /**
+ * Decodes a ListUsersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListUsersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListUsersRequest;
+
+ /**
+ * Verifies a ListUsersRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListUsersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListUsersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListUsersRequest;
+
+ /**
+ * Creates a plain object from a ListUsersRequest message. Also converts values to other types if specified.
+ * @param message ListUsersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListUsersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListUsersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListUsersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListUsersResponse. */
+ interface IListUsersResponse {
+
+ /** ListUsersResponse users */
+ users?: (google.shopping.merchant.accounts.v1beta.IUser[]|null);
+
+ /** ListUsersResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListUsersResponse. */
+ class ListUsersResponse implements IListUsersResponse {
+
+ /**
+ * Constructs a new ListUsersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListUsersResponse);
+
+ /** ListUsersResponse users. */
+ public users: google.shopping.merchant.accounts.v1beta.IUser[];
+
+ /** ListUsersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListUsersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListUsersResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListUsersResponse): google.shopping.merchant.accounts.v1beta.ListUsersResponse;
+
+ /**
+ * Encodes the specified ListUsersResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersResponse.verify|verify} messages.
+ * @param message ListUsersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListUsersResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersResponse.verify|verify} messages.
+ * @param message ListUsersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListUsersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListUsersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListUsersResponse;
+
+ /**
+ * Decodes a ListUsersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListUsersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListUsersResponse;
+
+ /**
+ * Verifies a ListUsersResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListUsersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListUsersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListUsersResponse;
+
+ /**
+ * Creates a plain object from a ListUsersResponse message. Also converts values to other types if specified.
+ * @param message ListUsersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListUsersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListUsersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListUsersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a BusinessIdentityService */
+ class BusinessIdentityService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new BusinessIdentityService 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 BusinessIdentityService 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): BusinessIdentityService;
+
+ /**
+ * Calls GetBusinessIdentity.
+ * @param request GetBusinessIdentityRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BusinessIdentity
+ */
+ public getBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessIdentityService.GetBusinessIdentityCallback): void;
+
+ /**
+ * Calls GetBusinessIdentity.
+ * @param request GetBusinessIdentityRequest message or plain object
+ * @returns Promise
+ */
+ public getBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest): Promise;
+
+ /**
+ * Calls UpdateBusinessIdentity.
+ * @param request UpdateBusinessIdentityRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BusinessIdentity
+ */
+ public updateBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessIdentityService.UpdateBusinessIdentityCallback): void;
+
+ /**
+ * Calls UpdateBusinessIdentity.
+ * @param request UpdateBusinessIdentityRequest message or plain object
+ * @returns Promise
+ */
+ public updateBusinessIdentity(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest): Promise;
+ }
+
+ namespace BusinessIdentityService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessIdentityService|getBusinessIdentity}.
+ * @param error Error, if any
+ * @param [response] BusinessIdentity
+ */
+ type GetBusinessIdentityCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.BusinessIdentity) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessIdentityService|updateBusinessIdentity}.
+ * @param error Error, if any
+ * @param [response] BusinessIdentity
+ */
+ type UpdateBusinessIdentityCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.BusinessIdentity) => void;
+ }
+
+ /** Properties of a BusinessIdentity. */
+ interface IBusinessIdentity {
+
+ /** BusinessIdentity name */
+ name?: (string|null);
+
+ /** BusinessIdentity promotionsConsent */
+ promotionsConsent?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent|keyof typeof google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent|null);
+
+ /** BusinessIdentity blackOwned */
+ blackOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity womenOwned */
+ womenOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity veteranOwned */
+ veteranOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity latinoOwned */
+ latinoOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity smallBusiness */
+ smallBusiness?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+ }
+
+ /** Represents a BusinessIdentity. */
+ class BusinessIdentity implements IBusinessIdentity {
+
+ /**
+ * Constructs a new BusinessIdentity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IBusinessIdentity);
+
+ /** BusinessIdentity name. */
+ public name: string;
+
+ /** BusinessIdentity promotionsConsent. */
+ public promotionsConsent: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent|keyof typeof google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent);
+
+ /** BusinessIdentity blackOwned. */
+ public blackOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity womenOwned. */
+ public womenOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity veteranOwned. */
+ public veteranOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity latinoOwned. */
+ public latinoOwned?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /** BusinessIdentity smallBusiness. */
+ public smallBusiness?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null);
+
+ /**
+ * Creates a new BusinessIdentity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BusinessIdentity instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IBusinessIdentity): google.shopping.merchant.accounts.v1beta.BusinessIdentity;
+
+ /**
+ * Encodes the specified BusinessIdentity message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.verify|verify} messages.
+ * @param message BusinessIdentity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IBusinessIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BusinessIdentity message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.verify|verify} messages.
+ * @param message BusinessIdentity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IBusinessIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BusinessIdentity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BusinessIdentity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.BusinessIdentity;
+
+ /**
+ * Decodes a BusinessIdentity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BusinessIdentity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.BusinessIdentity;
+
+ /**
+ * Verifies a BusinessIdentity message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BusinessIdentity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BusinessIdentity
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.BusinessIdentity;
+
+ /**
+ * Creates a plain object from a BusinessIdentity message. Also converts values to other types if specified.
+ * @param message BusinessIdentity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.BusinessIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BusinessIdentity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BusinessIdentity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BusinessIdentity {
+
+ /** Properties of an IdentityAttribute. */
+ interface IIdentityAttribute {
+
+ /** IdentityAttribute identityDeclaration */
+ identityDeclaration?: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration|keyof typeof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration|null);
+ }
+
+ /** Represents an IdentityAttribute. */
+ class IdentityAttribute implements IIdentityAttribute {
+
+ /**
+ * Constructs a new IdentityAttribute.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute);
+
+ /** IdentityAttribute identityDeclaration. */
+ public identityDeclaration: (google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration|keyof typeof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration);
+
+ /**
+ * Creates a new IdentityAttribute instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IdentityAttribute instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute): google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute;
+
+ /**
+ * Encodes the specified IdentityAttribute message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify|verify} messages.
+ * @param message IdentityAttribute message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IdentityAttribute message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify|verify} messages.
+ * @param message IdentityAttribute message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IdentityAttribute message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IdentityAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute;
+
+ /**
+ * Decodes an IdentityAttribute message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IdentityAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute;
+
+ /**
+ * Verifies an IdentityAttribute message.
+ * @param message Plain 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 IdentityAttribute message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IdentityAttribute
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute;
+
+ /**
+ * Creates a plain object from an IdentityAttribute message. Also converts values to other types if specified.
+ * @param message IdentityAttribute
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IdentityAttribute to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IdentityAttribute
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IdentityAttribute {
+
+ /** IdentityDeclaration enum. */
+ enum IdentityDeclaration {
+ IDENTITY_DECLARATION_UNSPECIFIED = 0,
+ SELF_IDENTIFIES_AS = 1,
+ DOES_NOT_SELF_IDENTIFY_AS = 2
+ }
+ }
+
+ /** PromotionsConsent enum. */
+ enum PromotionsConsent {
+ PROMOTIONS_CONSENT_UNSPECIFIED = 0,
+ PROMOTIONS_CONSENT_GIVEN = 1,
+ PROMOTIONS_CONSENT_DENIED = 2
+ }
+ }
+
+ /** Properties of a GetBusinessIdentityRequest. */
+ interface IGetBusinessIdentityRequest {
+
+ /** GetBusinessIdentityRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBusinessIdentityRequest. */
+ class GetBusinessIdentityRequest implements IGetBusinessIdentityRequest {
+
+ /**
+ * Constructs a new GetBusinessIdentityRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest);
+
+ /** GetBusinessIdentityRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBusinessIdentityRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBusinessIdentityRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest): google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest;
+
+ /**
+ * Encodes the specified GetBusinessIdentityRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest.verify|verify} messages.
+ * @param message GetBusinessIdentityRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBusinessIdentityRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest.verify|verify} messages.
+ * @param message GetBusinessIdentityRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBusinessIdentityRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest;
+
+ /**
+ * Decodes a GetBusinessIdentityRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest;
+
+ /**
+ * Verifies a GetBusinessIdentityRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBusinessIdentityRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBusinessIdentityRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest;
+
+ /**
+ * Creates a plain object from a GetBusinessIdentityRequest message. Also converts values to other types if specified.
+ * @param message GetBusinessIdentityRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBusinessIdentityRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBusinessIdentityRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBusinessIdentityRequest. */
+ interface IUpdateBusinessIdentityRequest {
+
+ /** UpdateBusinessIdentityRequest businessIdentity */
+ businessIdentity?: (google.shopping.merchant.accounts.v1beta.IBusinessIdentity|null);
+
+ /** UpdateBusinessIdentityRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateBusinessIdentityRequest. */
+ class UpdateBusinessIdentityRequest implements IUpdateBusinessIdentityRequest {
+
+ /**
+ * Constructs a new UpdateBusinessIdentityRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest);
+
+ /** UpdateBusinessIdentityRequest businessIdentity. */
+ public businessIdentity?: (google.shopping.merchant.accounts.v1beta.IBusinessIdentity|null);
+
+ /** UpdateBusinessIdentityRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateBusinessIdentityRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBusinessIdentityRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest): google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest;
+
+ /**
+ * Encodes the specified UpdateBusinessIdentityRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest.verify|verify} messages.
+ * @param message UpdateBusinessIdentityRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBusinessIdentityRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest.verify|verify} messages.
+ * @param message UpdateBusinessIdentityRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBusinessIdentityRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest;
+
+ /**
+ * Decodes an UpdateBusinessIdentityRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest;
+
+ /**
+ * Verifies an UpdateBusinessIdentityRequest message.
+ * @param message Plain 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 UpdateBusinessIdentityRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBusinessIdentityRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest;
+
+ /**
+ * Creates a plain object from an UpdateBusinessIdentityRequest message. Also converts values to other types if specified.
+ * @param message UpdateBusinessIdentityRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBusinessIdentityRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBusinessIdentityRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a BusinessInfoService */
+ class BusinessInfoService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new BusinessInfoService 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 BusinessInfoService 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): BusinessInfoService;
+
+ /**
+ * Calls GetBusinessInfo.
+ * @param request GetBusinessInfoRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BusinessInfo
+ */
+ public getBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessInfoService.GetBusinessInfoCallback): void;
+
+ /**
+ * Calls GetBusinessInfo.
+ * @param request GetBusinessInfoRequest message or plain object
+ * @returns Promise
+ */
+ public getBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest): Promise;
+
+ /**
+ * Calls UpdateBusinessInfo.
+ * @param request UpdateBusinessInfoRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BusinessInfo
+ */
+ public updateBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest, callback: google.shopping.merchant.accounts.v1beta.BusinessInfoService.UpdateBusinessInfoCallback): void;
+
+ /**
+ * Calls UpdateBusinessInfo.
+ * @param request UpdateBusinessInfoRequest message or plain object
+ * @returns Promise
+ */
+ public updateBusinessInfo(request: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest): Promise;
+ }
+
+ namespace BusinessInfoService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessInfoService|getBusinessInfo}.
+ * @param error Error, if any
+ * @param [response] BusinessInfo
+ */
+ type GetBusinessInfoCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.BusinessInfo) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessInfoService|updateBusinessInfo}.
+ * @param error Error, if any
+ * @param [response] BusinessInfo
+ */
+ type UpdateBusinessInfoCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.BusinessInfo) => void;
+ }
+
+ /** Properties of a BusinessInfo. */
+ interface IBusinessInfo {
+
+ /** BusinessInfo name */
+ name?: (string|null);
+
+ /** BusinessInfo address */
+ address?: (google.type.IPostalAddress|null);
+
+ /** BusinessInfo phone */
+ phone?: (google.type.IPhoneNumber|null);
+
+ /** BusinessInfo phoneVerificationState */
+ phoneVerificationState?: (google.shopping.merchant.accounts.v1beta.PhoneVerificationState|keyof typeof google.shopping.merchant.accounts.v1beta.PhoneVerificationState|null);
+
+ /** BusinessInfo customerService */
+ customerService?: (google.shopping.merchant.accounts.v1beta.ICustomerService|null);
+ }
+
+ /** Represents a BusinessInfo. */
+ class BusinessInfo implements IBusinessInfo {
+
+ /**
+ * Constructs a new BusinessInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IBusinessInfo);
+
+ /** BusinessInfo name. */
+ public name: string;
+
+ /** BusinessInfo address. */
+ public address?: (google.type.IPostalAddress|null);
+
+ /** BusinessInfo phone. */
+ public phone?: (google.type.IPhoneNumber|null);
+
+ /** BusinessInfo phoneVerificationState. */
+ public phoneVerificationState?: (google.shopping.merchant.accounts.v1beta.PhoneVerificationState|keyof typeof google.shopping.merchant.accounts.v1beta.PhoneVerificationState|null);
+
+ /** BusinessInfo customerService. */
+ public customerService?: (google.shopping.merchant.accounts.v1beta.ICustomerService|null);
+
+ /** BusinessInfo _address. */
+ public _address?: "address";
+
+ /** BusinessInfo _phone. */
+ public _phone?: "phone";
+
+ /** BusinessInfo _phoneVerificationState. */
+ public _phoneVerificationState?: "phoneVerificationState";
+
+ /** BusinessInfo _customerService. */
+ public _customerService?: "customerService";
+
+ /**
+ * Creates a new BusinessInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BusinessInfo instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IBusinessInfo): google.shopping.merchant.accounts.v1beta.BusinessInfo;
+
+ /**
+ * Encodes the specified BusinessInfo message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessInfo.verify|verify} messages.
+ * @param message BusinessInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IBusinessInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BusinessInfo message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessInfo.verify|verify} messages.
+ * @param message BusinessInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IBusinessInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BusinessInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BusinessInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.BusinessInfo;
+
+ /**
+ * Decodes a BusinessInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BusinessInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.BusinessInfo;
+
+ /**
+ * Verifies a BusinessInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BusinessInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BusinessInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.BusinessInfo;
+
+ /**
+ * Creates a plain object from a BusinessInfo message. Also converts values to other types if specified.
+ * @param message BusinessInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.BusinessInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BusinessInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BusinessInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBusinessInfoRequest. */
+ interface IGetBusinessInfoRequest {
+
+ /** GetBusinessInfoRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBusinessInfoRequest. */
+ class GetBusinessInfoRequest implements IGetBusinessInfoRequest {
+
+ /**
+ * Constructs a new GetBusinessInfoRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest);
+
+ /** GetBusinessInfoRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBusinessInfoRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBusinessInfoRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest): google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest;
+
+ /**
+ * Encodes the specified GetBusinessInfoRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest.verify|verify} messages.
+ * @param message GetBusinessInfoRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBusinessInfoRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest.verify|verify} messages.
+ * @param message GetBusinessInfoRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBusinessInfoRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest;
+
+ /**
+ * Decodes a GetBusinessInfoRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest;
+
+ /**
+ * Verifies a GetBusinessInfoRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBusinessInfoRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBusinessInfoRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest;
+
+ /**
+ * Creates a plain object from a GetBusinessInfoRequest message. Also converts values to other types if specified.
+ * @param message GetBusinessInfoRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBusinessInfoRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBusinessInfoRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBusinessInfoRequest. */
+ interface IUpdateBusinessInfoRequest {
+
+ /** UpdateBusinessInfoRequest businessInfo */
+ businessInfo?: (google.shopping.merchant.accounts.v1beta.IBusinessInfo|null);
+
+ /** UpdateBusinessInfoRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateBusinessInfoRequest. */
+ class UpdateBusinessInfoRequest implements IUpdateBusinessInfoRequest {
+
+ /**
+ * Constructs a new UpdateBusinessInfoRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest);
+
+ /** UpdateBusinessInfoRequest businessInfo. */
+ public businessInfo?: (google.shopping.merchant.accounts.v1beta.IBusinessInfo|null);
+
+ /** UpdateBusinessInfoRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateBusinessInfoRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBusinessInfoRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest): google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest;
+
+ /**
+ * Encodes the specified UpdateBusinessInfoRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest.verify|verify} messages.
+ * @param message UpdateBusinessInfoRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBusinessInfoRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest.verify|verify} messages.
+ * @param message UpdateBusinessInfoRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBusinessInfoRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest;
+
+ /**
+ * Decodes an UpdateBusinessInfoRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest;
+
+ /**
+ * Verifies an UpdateBusinessInfoRequest message.
+ * @param message Plain 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 UpdateBusinessInfoRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBusinessInfoRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest;
+
+ /**
+ * Creates a plain object from an UpdateBusinessInfoRequest message. Also converts values to other types if specified.
+ * @param message UpdateBusinessInfoRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBusinessInfoRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBusinessInfoRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomerService. */
+ interface ICustomerService {
+
+ /** CustomerService uri */
+ uri?: (string|null);
+
+ /** CustomerService email */
+ email?: (string|null);
+
+ /** CustomerService phone */
+ phone?: (google.type.IPhoneNumber|null);
+ }
+
+ /** Represents a CustomerService. */
+ class CustomerService implements ICustomerService {
+
+ /**
+ * Constructs a new CustomerService.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ICustomerService);
+
+ /** CustomerService uri. */
+ public uri?: (string|null);
+
+ /** CustomerService email. */
+ public email?: (string|null);
+
+ /** CustomerService phone. */
+ public phone?: (google.type.IPhoneNumber|null);
+
+ /** CustomerService _uri. */
+ public _uri?: "uri";
+
+ /** CustomerService _email. */
+ public _email?: "email";
+
+ /** CustomerService _phone. */
+ public _phone?: "phone";
+
+ /**
+ * Creates a new CustomerService instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomerService instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ICustomerService): google.shopping.merchant.accounts.v1beta.CustomerService;
+
+ /**
+ * Encodes the specified CustomerService message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CustomerService.verify|verify} messages.
+ * @param message CustomerService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ICustomerService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomerService message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CustomerService.verify|verify} messages.
+ * @param message CustomerService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ICustomerService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomerService message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomerService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CustomerService;
+
+ /**
+ * Decodes a CustomerService message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomerService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CustomerService;
+
+ /**
+ * Verifies a CustomerService message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomerService message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomerService
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CustomerService;
+
+ /**
+ * Creates a plain object from a CustomerService message. Also converts values to other types if specified.
+ * @param message CustomerService
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CustomerService, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomerService to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomerService
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** PhoneVerificationState enum. */
+ enum PhoneVerificationState {
+ PHONE_VERIFICATION_STATE_UNSPECIFIED = 0,
+ PHONE_VERIFICATION_STATE_VERIFIED = 1,
+ PHONE_VERIFICATION_STATE_UNVERIFIED = 2
+ }
+
+ /** Represents an EmailPreferencesService */
+ class EmailPreferencesService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new EmailPreferencesService 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 EmailPreferencesService 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): EmailPreferencesService;
+
+ /**
+ * Calls GetEmailPreferences.
+ * @param request GetEmailPreferencesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and EmailPreferences
+ */
+ public getEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest, callback: google.shopping.merchant.accounts.v1beta.EmailPreferencesService.GetEmailPreferencesCallback): void;
+
+ /**
+ * Calls GetEmailPreferences.
+ * @param request GetEmailPreferencesRequest message or plain object
+ * @returns Promise
+ */
+ public getEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest): Promise;
+
+ /**
+ * Calls UpdateEmailPreferences.
+ * @param request UpdateEmailPreferencesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and EmailPreferences
+ */
+ public updateEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest, callback: google.shopping.merchant.accounts.v1beta.EmailPreferencesService.UpdateEmailPreferencesCallback): void;
+
+ /**
+ * Calls UpdateEmailPreferences.
+ * @param request UpdateEmailPreferencesRequest message or plain object
+ * @returns Promise
+ */
+ public updateEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest): Promise;
+ }
+
+ namespace EmailPreferencesService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.EmailPreferencesService|getEmailPreferences}.
+ * @param error Error, if any
+ * @param [response] EmailPreferences
+ */
+ type GetEmailPreferencesCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.EmailPreferences) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.EmailPreferencesService|updateEmailPreferences}.
+ * @param error Error, if any
+ * @param [response] EmailPreferences
+ */
+ type UpdateEmailPreferencesCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.EmailPreferences) => void;
+ }
+
+ /** Properties of an EmailPreferences. */
+ interface IEmailPreferences {
+
+ /** EmailPreferences name */
+ name?: (string|null);
+
+ /** EmailPreferences newsAndTips */
+ newsAndTips?: (google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState|keyof typeof google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState|null);
+ }
+
+ /** Represents an EmailPreferences. */
+ class EmailPreferences implements IEmailPreferences {
+
+ /**
+ * Constructs a new EmailPreferences.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IEmailPreferences);
+
+ /** EmailPreferences name. */
+ public name: string;
+
+ /** EmailPreferences newsAndTips. */
+ public newsAndTips: (google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState|keyof typeof google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState);
+
+ /**
+ * Creates a new EmailPreferences instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EmailPreferences instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IEmailPreferences): google.shopping.merchant.accounts.v1beta.EmailPreferences;
+
+ /**
+ * Encodes the specified EmailPreferences message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.EmailPreferences.verify|verify} messages.
+ * @param message EmailPreferences message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IEmailPreferences, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EmailPreferences message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.EmailPreferences.verify|verify} messages.
+ * @param message EmailPreferences message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IEmailPreferences, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EmailPreferences message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EmailPreferences
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.EmailPreferences;
+
+ /**
+ * Decodes an EmailPreferences message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EmailPreferences
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.EmailPreferences;
+
+ /**
+ * Verifies an EmailPreferences message.
+ * @param message Plain 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 EmailPreferences message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EmailPreferences
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.EmailPreferences;
+
+ /**
+ * Creates a plain object from an EmailPreferences message. Also converts values to other types if specified.
+ * @param message EmailPreferences
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.EmailPreferences, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EmailPreferences to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EmailPreferences
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EmailPreferences {
+
+ /** OptInState enum. */
+ enum OptInState {
+ OPT_IN_STATE_UNSPECIFIED = 0,
+ OPTED_OUT = 1,
+ OPTED_IN = 2,
+ UNCONFIRMED = 3
+ }
+ }
+
+ /** Properties of a GetEmailPreferencesRequest. */
+ interface IGetEmailPreferencesRequest {
+
+ /** GetEmailPreferencesRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetEmailPreferencesRequest. */
+ class GetEmailPreferencesRequest implements IGetEmailPreferencesRequest {
+
+ /**
+ * Constructs a new GetEmailPreferencesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest);
+
+ /** GetEmailPreferencesRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetEmailPreferencesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetEmailPreferencesRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest): google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest;
+
+ /**
+ * Encodes the specified GetEmailPreferencesRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest.verify|verify} messages.
+ * @param message GetEmailPreferencesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetEmailPreferencesRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest.verify|verify} messages.
+ * @param message GetEmailPreferencesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetEmailPreferencesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest;
+
+ /**
+ * Decodes a GetEmailPreferencesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest;
+
+ /**
+ * Verifies a GetEmailPreferencesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetEmailPreferencesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetEmailPreferencesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest;
+
+ /**
+ * Creates a plain object from a GetEmailPreferencesRequest message. Also converts values to other types if specified.
+ * @param message GetEmailPreferencesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetEmailPreferencesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetEmailPreferencesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateEmailPreferencesRequest. */
+ interface IUpdateEmailPreferencesRequest {
+
+ /** UpdateEmailPreferencesRequest emailPreferences */
+ emailPreferences?: (google.shopping.merchant.accounts.v1beta.IEmailPreferences|null);
+
+ /** UpdateEmailPreferencesRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateEmailPreferencesRequest. */
+ class UpdateEmailPreferencesRequest implements IUpdateEmailPreferencesRequest {
+
+ /**
+ * Constructs a new UpdateEmailPreferencesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest);
+
+ /** UpdateEmailPreferencesRequest emailPreferences. */
+ public emailPreferences?: (google.shopping.merchant.accounts.v1beta.IEmailPreferences|null);
+
+ /** UpdateEmailPreferencesRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateEmailPreferencesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateEmailPreferencesRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest): google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest;
+
+ /**
+ * Encodes the specified UpdateEmailPreferencesRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest.verify|verify} messages.
+ * @param message UpdateEmailPreferencesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateEmailPreferencesRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest.verify|verify} messages.
+ * @param message UpdateEmailPreferencesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateEmailPreferencesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest;
+
+ /**
+ * Decodes an UpdateEmailPreferencesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest;
+
+ /**
+ * Verifies an UpdateEmailPreferencesRequest message.
+ * @param message Plain 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 UpdateEmailPreferencesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateEmailPreferencesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest;
+
+ /**
+ * Creates a plain object from an UpdateEmailPreferencesRequest message. Also converts values to other types if specified.
+ * @param message UpdateEmailPreferencesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateEmailPreferencesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateEmailPreferencesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a HomepageService */
+ class HomepageService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new HomepageService 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 HomepageService 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): HomepageService;
+
+ /**
+ * Calls GetHomepage.
+ * @param request GetHomepageRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Homepage
+ */
+ public getHomepage(request: google.shopping.merchant.accounts.v1beta.IGetHomepageRequest, callback: google.shopping.merchant.accounts.v1beta.HomepageService.GetHomepageCallback): void;
+
+ /**
+ * Calls GetHomepage.
+ * @param request GetHomepageRequest message or plain object
+ * @returns Promise
+ */
+ public getHomepage(request: google.shopping.merchant.accounts.v1beta.IGetHomepageRequest): Promise;
+
+ /**
+ * Calls UpdateHomepage.
+ * @param request UpdateHomepageRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Homepage
+ */
+ public updateHomepage(request: google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest, callback: google.shopping.merchant.accounts.v1beta.HomepageService.UpdateHomepageCallback): void;
+
+ /**
+ * Calls UpdateHomepage.
+ * @param request UpdateHomepageRequest message or plain object
+ * @returns Promise
+ */
+ public updateHomepage(request: google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest): Promise;
+
+ /**
+ * Calls ClaimHomepage.
+ * @param request ClaimHomepageRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Homepage
+ */
+ public claimHomepage(request: google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest, callback: google.shopping.merchant.accounts.v1beta.HomepageService.ClaimHomepageCallback): void;
+
+ /**
+ * Calls ClaimHomepage.
+ * @param request ClaimHomepageRequest message or plain object
+ * @returns Promise
+ */
+ public claimHomepage(request: google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest): Promise;
+
+ /**
+ * Calls UnclaimHomepage.
+ * @param request UnclaimHomepageRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Homepage
+ */
+ public unclaimHomepage(request: google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest, callback: google.shopping.merchant.accounts.v1beta.HomepageService.UnclaimHomepageCallback): void;
+
+ /**
+ * Calls UnclaimHomepage.
+ * @param request UnclaimHomepageRequest message or plain object
+ * @returns Promise
+ */
+ public unclaimHomepage(request: google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest): Promise;
+ }
+
+ namespace HomepageService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|getHomepage}.
+ * @param error Error, if any
+ * @param [response] Homepage
+ */
+ type GetHomepageCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Homepage) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|updateHomepage}.
+ * @param error Error, if any
+ * @param [response] Homepage
+ */
+ type UpdateHomepageCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Homepage) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|claimHomepage}.
+ * @param error Error, if any
+ * @param [response] Homepage
+ */
+ type ClaimHomepageCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Homepage) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|unclaimHomepage}.
+ * @param error Error, if any
+ * @param [response] Homepage
+ */
+ type UnclaimHomepageCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Homepage) => void;
+ }
+
+ /** Properties of a Homepage. */
+ interface IHomepage {
+
+ /** Homepage name */
+ name?: (string|null);
+
+ /** Homepage uri */
+ uri?: (string|null);
+
+ /** Homepage claimed */
+ claimed?: (boolean|null);
+ }
+
+ /** Represents a Homepage. */
+ class Homepage implements IHomepage {
+
+ /**
+ * Constructs a new Homepage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IHomepage);
+
+ /** Homepage name. */
+ public name: string;
+
+ /** Homepage uri. */
+ public uri?: (string|null);
+
+ /** Homepage claimed. */
+ public claimed: boolean;
+
+ /** Homepage _uri. */
+ public _uri?: "uri";
+
+ /**
+ * Creates a new Homepage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Homepage instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IHomepage): google.shopping.merchant.accounts.v1beta.Homepage;
+
+ /**
+ * Encodes the specified Homepage message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Homepage.verify|verify} messages.
+ * @param message Homepage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IHomepage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Homepage message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Homepage.verify|verify} messages.
+ * @param message Homepage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IHomepage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Homepage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Homepage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Homepage;
+
+ /**
+ * Decodes a Homepage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Homepage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Homepage;
+
+ /**
+ * Verifies a Homepage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Homepage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Homepage
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Homepage;
+
+ /**
+ * Creates a plain object from a Homepage message. Also converts values to other types if specified.
+ * @param message Homepage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Homepage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Homepage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Homepage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetHomepageRequest. */
+ interface IGetHomepageRequest {
+
+ /** GetHomepageRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetHomepageRequest. */
+ class GetHomepageRequest implements IGetHomepageRequest {
+
+ /**
+ * Constructs a new GetHomepageRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetHomepageRequest);
+
+ /** GetHomepageRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetHomepageRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetHomepageRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetHomepageRequest): google.shopping.merchant.accounts.v1beta.GetHomepageRequest;
+
+ /**
+ * Encodes the specified GetHomepageRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetHomepageRequest.verify|verify} messages.
+ * @param message GetHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetHomepageRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetHomepageRequest.verify|verify} messages.
+ * @param message GetHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetHomepageRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetHomepageRequest;
+
+ /**
+ * Decodes a GetHomepageRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetHomepageRequest;
+
+ /**
+ * Verifies a GetHomepageRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetHomepageRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetHomepageRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetHomepageRequest;
+
+ /**
+ * Creates a plain object from a GetHomepageRequest message. Also converts values to other types if specified.
+ * @param message GetHomepageRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetHomepageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetHomepageRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetHomepageRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateHomepageRequest. */
+ interface IUpdateHomepageRequest {
+
+ /** UpdateHomepageRequest homepage */
+ homepage?: (google.shopping.merchant.accounts.v1beta.IHomepage|null);
+
+ /** UpdateHomepageRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateHomepageRequest. */
+ class UpdateHomepageRequest implements IUpdateHomepageRequest {
+
+ /**
+ * Constructs a new UpdateHomepageRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest);
+
+ /** UpdateHomepageRequest homepage. */
+ public homepage?: (google.shopping.merchant.accounts.v1beta.IHomepage|null);
+
+ /** UpdateHomepageRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateHomepageRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateHomepageRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest): google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest;
+
+ /**
+ * Encodes the specified UpdateHomepageRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest.verify|verify} messages.
+ * @param message UpdateHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateHomepageRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest.verify|verify} messages.
+ * @param message UpdateHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateHomepageRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest;
+
+ /**
+ * Decodes an UpdateHomepageRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest;
+
+ /**
+ * Verifies an UpdateHomepageRequest message.
+ * @param message Plain 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 UpdateHomepageRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateHomepageRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest;
+
+ /**
+ * Creates a plain object from an UpdateHomepageRequest message. Also converts values to other types if specified.
+ * @param message UpdateHomepageRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateHomepageRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateHomepageRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClaimHomepageRequest. */
+ interface IClaimHomepageRequest {
+
+ /** ClaimHomepageRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a ClaimHomepageRequest. */
+ class ClaimHomepageRequest implements IClaimHomepageRequest {
+
+ /**
+ * Constructs a new ClaimHomepageRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest);
+
+ /** ClaimHomepageRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new ClaimHomepageRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClaimHomepageRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest): google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest;
+
+ /**
+ * Encodes the specified ClaimHomepageRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest.verify|verify} messages.
+ * @param message ClaimHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClaimHomepageRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest.verify|verify} messages.
+ * @param message ClaimHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClaimHomepageRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClaimHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest;
+
+ /**
+ * Decodes a ClaimHomepageRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClaimHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest;
+
+ /**
+ * Verifies a ClaimHomepageRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClaimHomepageRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClaimHomepageRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest;
+
+ /**
+ * Creates a plain object from a ClaimHomepageRequest message. Also converts values to other types if specified.
+ * @param message ClaimHomepageRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClaimHomepageRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClaimHomepageRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UnclaimHomepageRequest. */
+ interface IUnclaimHomepageRequest {
+
+ /** UnclaimHomepageRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an UnclaimHomepageRequest. */
+ class UnclaimHomepageRequest implements IUnclaimHomepageRequest {
+
+ /**
+ * Constructs a new UnclaimHomepageRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest);
+
+ /** UnclaimHomepageRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new UnclaimHomepageRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UnclaimHomepageRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest): google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest;
+
+ /**
+ * Encodes the specified UnclaimHomepageRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest.verify|verify} messages.
+ * @param message UnclaimHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UnclaimHomepageRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest.verify|verify} messages.
+ * @param message UnclaimHomepageRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UnclaimHomepageRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UnclaimHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest;
+
+ /**
+ * Decodes an UnclaimHomepageRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UnclaimHomepageRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest;
+
+ /**
+ * Verifies an UnclaimHomepageRequest message.
+ * @param message Plain 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 UnclaimHomepageRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UnclaimHomepageRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest;
+
+ /**
+ * Creates a plain object from an UnclaimHomepageRequest message. Also converts values to other types if specified.
+ * @param message UnclaimHomepageRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UnclaimHomepageRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UnclaimHomepageRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an OnlineReturnPolicyService */
+ class OnlineReturnPolicyService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new OnlineReturnPolicyService 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 OnlineReturnPolicyService 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): OnlineReturnPolicyService;
+
+ /**
+ * Calls GetOnlineReturnPolicy.
+ * @param request GetOnlineReturnPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and OnlineReturnPolicy
+ */
+ public getOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.GetOnlineReturnPolicyCallback): void;
+
+ /**
+ * Calls GetOnlineReturnPolicy.
+ * @param request GetOnlineReturnPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest): Promise;
+
+ /**
+ * Calls ListOnlineReturnPolicies.
+ * @param request ListOnlineReturnPoliciesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOnlineReturnPoliciesResponse
+ */
+ public listOnlineReturnPolicies(request: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest, callback: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.ListOnlineReturnPoliciesCallback): void;
+
+ /**
+ * Calls ListOnlineReturnPolicies.
+ * @param request ListOnlineReturnPoliciesRequest message or plain object
+ * @returns Promise
+ */
+ public listOnlineReturnPolicies(request: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest): Promise;
+ }
+
+ namespace OnlineReturnPolicyService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService|getOnlineReturnPolicy}.
+ * @param error Error, if any
+ * @param [response] OnlineReturnPolicy
+ */
+ type GetOnlineReturnPolicyCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService|listOnlineReturnPolicies}.
+ * @param error Error, if any
+ * @param [response] ListOnlineReturnPoliciesResponse
+ */
+ type ListOnlineReturnPoliciesCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse) => void;
+ }
+
+ /** Properties of a GetOnlineReturnPolicyRequest. */
+ interface IGetOnlineReturnPolicyRequest {
+
+ /** GetOnlineReturnPolicyRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOnlineReturnPolicyRequest. */
+ class GetOnlineReturnPolicyRequest implements IGetOnlineReturnPolicyRequest {
+
+ /**
+ * Constructs a new GetOnlineReturnPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest);
+
+ /** GetOnlineReturnPolicyRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOnlineReturnPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOnlineReturnPolicyRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest): google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest;
+
+ /**
+ * Encodes the specified GetOnlineReturnPolicyRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest.verify|verify} messages.
+ * @param message GetOnlineReturnPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOnlineReturnPolicyRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest.verify|verify} messages.
+ * @param message GetOnlineReturnPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOnlineReturnPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOnlineReturnPolicyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest;
+
+ /**
+ * Decodes a GetOnlineReturnPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOnlineReturnPolicyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest;
+
+ /**
+ * Verifies a GetOnlineReturnPolicyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOnlineReturnPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOnlineReturnPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest;
+
+ /**
+ * Creates a plain object from a GetOnlineReturnPolicyRequest message. Also converts values to other types if specified.
+ * @param message GetOnlineReturnPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOnlineReturnPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOnlineReturnPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOnlineReturnPoliciesRequest. */
+ interface IListOnlineReturnPoliciesRequest {
+
+ /** ListOnlineReturnPoliciesRequest parent */
+ parent?: (string|null);
+
+ /** ListOnlineReturnPoliciesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOnlineReturnPoliciesRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOnlineReturnPoliciesRequest. */
+ class ListOnlineReturnPoliciesRequest implements IListOnlineReturnPoliciesRequest {
+
+ /**
+ * Constructs a new ListOnlineReturnPoliciesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest);
+
+ /** ListOnlineReturnPoliciesRequest parent. */
+ public parent: string;
+
+ /** ListOnlineReturnPoliciesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOnlineReturnPoliciesRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOnlineReturnPoliciesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOnlineReturnPoliciesRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest;
+
+ /**
+ * Encodes the specified ListOnlineReturnPoliciesRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest.verify|verify} messages.
+ * @param message ListOnlineReturnPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOnlineReturnPoliciesRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest.verify|verify} messages.
+ * @param message ListOnlineReturnPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOnlineReturnPoliciesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOnlineReturnPoliciesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest;
+
+ /**
+ * Decodes a ListOnlineReturnPoliciesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOnlineReturnPoliciesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest;
+
+ /**
+ * Verifies a ListOnlineReturnPoliciesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOnlineReturnPoliciesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOnlineReturnPoliciesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest;
+
+ /**
+ * Creates a plain object from a ListOnlineReturnPoliciesRequest message. Also converts values to other types if specified.
+ * @param message ListOnlineReturnPoliciesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOnlineReturnPoliciesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOnlineReturnPoliciesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOnlineReturnPoliciesResponse. */
+ interface IListOnlineReturnPoliciesResponse {
+
+ /** ListOnlineReturnPoliciesResponse onlineReturnPolicies */
+ onlineReturnPolicies?: (google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy[]|null);
+
+ /** ListOnlineReturnPoliciesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOnlineReturnPoliciesResponse. */
+ class ListOnlineReturnPoliciesResponse implements IListOnlineReturnPoliciesResponse {
+
+ /**
+ * Constructs a new ListOnlineReturnPoliciesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesResponse);
+
+ /** ListOnlineReturnPoliciesResponse onlineReturnPolicies. */
+ public onlineReturnPolicies: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy[];
+
+ /** ListOnlineReturnPoliciesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOnlineReturnPoliciesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOnlineReturnPoliciesResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesResponse): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse;
+
+ /**
+ * Encodes the specified ListOnlineReturnPoliciesResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse.verify|verify} messages.
+ * @param message ListOnlineReturnPoliciesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOnlineReturnPoliciesResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse.verify|verify} messages.
+ * @param message ListOnlineReturnPoliciesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOnlineReturnPoliciesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOnlineReturnPoliciesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse;
+
+ /**
+ * Decodes a ListOnlineReturnPoliciesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOnlineReturnPoliciesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse;
+
+ /**
+ * Verifies a ListOnlineReturnPoliciesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOnlineReturnPoliciesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOnlineReturnPoliciesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse;
+
+ /**
+ * Creates a plain object from a ListOnlineReturnPoliciesResponse message. Also converts values to other types if specified.
+ * @param message ListOnlineReturnPoliciesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOnlineReturnPoliciesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOnlineReturnPoliciesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OnlineReturnPolicy. */
+ interface IOnlineReturnPolicy {
+
+ /** OnlineReturnPolicy name */
+ name?: (string|null);
+
+ /** OnlineReturnPolicy returnPolicyId */
+ returnPolicyId?: (string|null);
+
+ /** OnlineReturnPolicy label */
+ label?: (string|null);
+
+ /** OnlineReturnPolicy countries */
+ countries?: (string[]|null);
+
+ /** OnlineReturnPolicy policy */
+ policy?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IPolicy|null);
+
+ /** OnlineReturnPolicy restockingFee */
+ restockingFee?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IRestockingFee|null);
+
+ /** OnlineReturnPolicy returnMethods */
+ returnMethods?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnMethod[]|null);
+
+ /** OnlineReturnPolicy itemConditions */
+ itemConditions?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ItemCondition[]|null);
+
+ /** OnlineReturnPolicy returnShippingFee */
+ returnShippingFee?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IReturnShippingFee|null);
+
+ /** OnlineReturnPolicy returnPolicyUri */
+ returnPolicyUri?: (string|null);
+
+ /** OnlineReturnPolicy acceptDefectiveOnly */
+ acceptDefectiveOnly?: (boolean|null);
+
+ /** OnlineReturnPolicy processRefundDays */
+ processRefundDays?: (number|null);
+
+ /** OnlineReturnPolicy acceptExchange */
+ acceptExchange?: (boolean|null);
+ }
+
+ /** Represents an OnlineReturnPolicy. */
+ class OnlineReturnPolicy implements IOnlineReturnPolicy {
+
+ /**
+ * Constructs a new OnlineReturnPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy);
+
+ /** OnlineReturnPolicy name. */
+ public name: string;
+
+ /** OnlineReturnPolicy returnPolicyId. */
+ public returnPolicyId: string;
+
+ /** OnlineReturnPolicy label. */
+ public label: string;
+
+ /** OnlineReturnPolicy countries. */
+ public countries: string[];
+
+ /** OnlineReturnPolicy policy. */
+ public policy?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IPolicy|null);
+
+ /** OnlineReturnPolicy restockingFee. */
+ public restockingFee?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IRestockingFee|null);
+
+ /** OnlineReturnPolicy returnMethods. */
+ public returnMethods: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnMethod[];
+
+ /** OnlineReturnPolicy itemConditions. */
+ public itemConditions: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ItemCondition[];
+
+ /** OnlineReturnPolicy returnShippingFee. */
+ public returnShippingFee?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IReturnShippingFee|null);
+
+ /** OnlineReturnPolicy returnPolicyUri. */
+ public returnPolicyUri: string;
+
+ /** OnlineReturnPolicy acceptDefectiveOnly. */
+ public acceptDefectiveOnly?: (boolean|null);
+
+ /** OnlineReturnPolicy processRefundDays. */
+ public processRefundDays?: (number|null);
+
+ /** OnlineReturnPolicy acceptExchange. */
+ public acceptExchange?: (boolean|null);
+
+ /** OnlineReturnPolicy _acceptDefectiveOnly. */
+ public _acceptDefectiveOnly?: "acceptDefectiveOnly";
+
+ /** OnlineReturnPolicy _processRefundDays. */
+ public _processRefundDays?: "processRefundDays";
+
+ /** OnlineReturnPolicy _acceptExchange. */
+ public _acceptExchange?: "acceptExchange";
+
+ /**
+ * Creates a new OnlineReturnPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OnlineReturnPolicy instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;
+
+ /**
+ * Encodes the specified OnlineReturnPolicy message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.verify|verify} messages.
+ * @param message OnlineReturnPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OnlineReturnPolicy message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.verify|verify} messages.
+ * @param message OnlineReturnPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OnlineReturnPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OnlineReturnPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;
+
+ /**
+ * Decodes an OnlineReturnPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OnlineReturnPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;
+
+ /**
+ * Verifies an OnlineReturnPolicy message.
+ * @param message Plain 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 OnlineReturnPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OnlineReturnPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;
+
+ /**
+ * Creates a plain object from an OnlineReturnPolicy message. Also converts values to other types if specified.
+ * @param message OnlineReturnPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OnlineReturnPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OnlineReturnPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OnlineReturnPolicy {
+
+ /** Properties of a ReturnShippingFee. */
+ interface IReturnShippingFee {
+
+ /** ReturnShippingFee type */
+ type?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type|keyof typeof google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type|null);
+
+ /** ReturnShippingFee fixedFee */
+ fixedFee?: (google.shopping.type.IPrice|null);
+ }
+
+ /** Represents a ReturnShippingFee. */
+ class ReturnShippingFee implements IReturnShippingFee {
+
+ /**
+ * Constructs a new ReturnShippingFee.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IReturnShippingFee);
+
+ /** ReturnShippingFee type. */
+ public type: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type|keyof typeof google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type);
+
+ /** ReturnShippingFee fixedFee. */
+ public fixedFee?: (google.shopping.type.IPrice|null);
+
+ /**
+ * Creates a new ReturnShippingFee instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReturnShippingFee instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IReturnShippingFee): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee;
+
+ /**
+ * Encodes the specified ReturnShippingFee message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.verify|verify} messages.
+ * @param message ReturnShippingFee message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IReturnShippingFee, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReturnShippingFee message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.verify|verify} messages.
+ * @param message ReturnShippingFee message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IReturnShippingFee, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReturnShippingFee message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReturnShippingFee
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee;
+
+ /**
+ * Decodes a ReturnShippingFee message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReturnShippingFee
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee;
+
+ /**
+ * Verifies a ReturnShippingFee message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReturnShippingFee message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReturnShippingFee
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee;
+
+ /**
+ * Creates a plain object from a ReturnShippingFee message. Also converts values to other types if specified.
+ * @param message ReturnShippingFee
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReturnShippingFee to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReturnShippingFee
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ReturnShippingFee {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ FIXED = 1,
+ CUSTOMER_PAYING_ACTUAL_FEE = 2
+ }
+ }
+
+ /** Properties of a RestockingFee. */
+ interface IRestockingFee {
+
+ /** RestockingFee fixedFee */
+ fixedFee?: (google.shopping.type.IPrice|null);
+
+ /** RestockingFee microPercent */
+ microPercent?: (number|null);
+ }
+
+ /** Represents a RestockingFee. */
+ class RestockingFee implements IRestockingFee {
+
+ /**
+ * Constructs a new RestockingFee.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IRestockingFee);
+
+ /** RestockingFee fixedFee. */
+ public fixedFee?: (google.shopping.type.IPrice|null);
+
+ /** RestockingFee microPercent. */
+ public microPercent?: (number|null);
+
+ /** RestockingFee type. */
+ public type?: ("fixedFee"|"microPercent");
+
+ /**
+ * Creates a new RestockingFee instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestockingFee instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IRestockingFee): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee;
+
+ /**
+ * Encodes the specified RestockingFee message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee.verify|verify} messages.
+ * @param message RestockingFee message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IRestockingFee, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestockingFee message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee.verify|verify} messages.
+ * @param message RestockingFee message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IRestockingFee, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestockingFee message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestockingFee
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee;
+
+ /**
+ * Decodes a RestockingFee message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestockingFee
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee;
+
+ /**
+ * Verifies a RestockingFee message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestockingFee message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestockingFee
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee;
+
+ /**
+ * Creates a plain object from a RestockingFee message. Also converts values to other types if specified.
+ * @param message RestockingFee
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestockingFee to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestockingFee
+ * @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 type */
+ type?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type|keyof typeof google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type|null);
+
+ /** Policy days */
+ days?: (number|Long|string|null);
+ }
+
+ /** Represents a Policy. */
+ class Policy implements IPolicy {
+
+ /**
+ * Constructs a new Policy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IPolicy);
+
+ /** Policy type. */
+ public type: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type|keyof typeof google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type);
+
+ /** Policy days. */
+ public days: (number|Long|string);
+
+ /**
+ * Creates a new Policy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Policy instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IPolicy): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy;
+
+ /**
+ * Encodes the specified Policy message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.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.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Policy message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.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.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.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.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.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.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.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.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.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.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.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;
+ }
+
+ namespace Policy {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ NUMBER_OF_DAYS_AFTER_DELIVERY = 1,
+ NO_RETURNS = 2,
+ LIFETIME_RETURNS = 3
+ }
+ }
+
+ /** ReturnMethod enum. */
+ enum ReturnMethod {
+ RETURN_METHOD_UNSPECIFIED = 0,
+ BY_MAIL = 1,
+ IN_STORE = 2,
+ AT_A_KIOSK = 3
+ }
+
+ /** ItemCondition enum. */
+ enum ItemCondition {
+ ITEM_CONDITION_UNSPECIFIED = 0,
+ NEW = 1,
+ USED = 2
+ }
+ }
+
+ /** Represents a ProgramsService */
+ class ProgramsService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ProgramsService 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 ProgramsService 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): ProgramsService;
+
+ /**
+ * Calls GetProgram.
+ * @param request GetProgramRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Program
+ */
+ public getProgram(request: google.shopping.merchant.accounts.v1beta.IGetProgramRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.GetProgramCallback): void;
+
+ /**
+ * Calls GetProgram.
+ * @param request GetProgramRequest message or plain object
+ * @returns Promise
+ */
+ public getProgram(request: google.shopping.merchant.accounts.v1beta.IGetProgramRequest): Promise;
+
+ /**
+ * Calls ListPrograms.
+ * @param request ListProgramsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProgramsResponse
+ */
+ public listPrograms(request: google.shopping.merchant.accounts.v1beta.IListProgramsRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.ListProgramsCallback): void;
+
+ /**
+ * Calls ListPrograms.
+ * @param request ListProgramsRequest message or plain object
+ * @returns Promise
+ */
+ public listPrograms(request: google.shopping.merchant.accounts.v1beta.IListProgramsRequest): Promise;
+
+ /**
+ * Calls EnableProgram.
+ * @param request EnableProgramRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Program
+ */
+ public enableProgram(request: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.EnableProgramCallback): void;
+
+ /**
+ * Calls EnableProgram.
+ * @param request EnableProgramRequest message or plain object
+ * @returns Promise
+ */
+ public enableProgram(request: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest): Promise;
+
+ /**
+ * Calls DisableProgram.
+ * @param request DisableProgramRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Program
+ */
+ public disableProgram(request: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.DisableProgramCallback): void;
+
+ /**
+ * Calls DisableProgram.
+ * @param request DisableProgramRequest message or plain object
+ * @returns Promise
+ */
+ public disableProgram(request: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest): Promise;
+ }
+
+ namespace ProgramsService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.ProgramsService|getProgram}.
+ * @param error Error, if any
+ * @param [response] Program
+ */
+ type GetProgramCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Program) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.ProgramsService|listPrograms}.
+ * @param error Error, if any
+ * @param [response] ListProgramsResponse
+ */
+ type ListProgramsCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListProgramsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.ProgramsService|enableProgram}.
+ * @param error Error, if any
+ * @param [response] Program
+ */
+ type EnableProgramCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Program) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.ProgramsService|disableProgram}.
+ * @param error Error, if any
+ * @param [response] Program
+ */
+ type DisableProgramCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Program) => void;
+ }
+
+ /** Properties of a Program. */
+ interface IProgram {
+
+ /** Program name */
+ name?: (string|null);
+
+ /** Program documentationUri */
+ documentationUri?: (string|null);
+
+ /** Program state */
+ state?: (google.shopping.merchant.accounts.v1beta.Program.State|keyof typeof google.shopping.merchant.accounts.v1beta.Program.State|null);
+
+ /** Program activeRegionCodes */
+ activeRegionCodes?: (string[]|null);
+
+ /** Program unmetRequirements */
+ unmetRequirements?: (google.shopping.merchant.accounts.v1beta.Program.IRequirement[]|null);
+ }
+
+ /** Represents a Program. */
+ class Program implements IProgram {
+
+ /**
+ * Constructs a new Program.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IProgram);
+
+ /** Program name. */
+ public name: string;
+
+ /** Program documentationUri. */
+ public documentationUri: string;
+
+ /** Program state. */
+ public state: (google.shopping.merchant.accounts.v1beta.Program.State|keyof typeof google.shopping.merchant.accounts.v1beta.Program.State);
+
+ /** Program activeRegionCodes. */
+ public activeRegionCodes: string[];
+
+ /** Program unmetRequirements. */
+ public unmetRequirements: google.shopping.merchant.accounts.v1beta.Program.IRequirement[];
+
+ /**
+ * Creates a new Program instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Program instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IProgram): google.shopping.merchant.accounts.v1beta.Program;
+
+ /**
+ * Encodes the specified Program message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Program.verify|verify} messages.
+ * @param message Program message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IProgram, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Program message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Program.verify|verify} messages.
+ * @param message Program message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IProgram, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Program message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Program
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Program;
+
+ /**
+ * Decodes a Program message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Program
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Program;
+
+ /**
+ * Verifies a Program message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Program message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Program
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Program;
+
+ /**
+ * Creates a plain object from a Program message. Also converts values to other types if specified.
+ * @param message Program
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Program, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Program to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Program
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Program {
+
+ /** Properties of a Requirement. */
+ interface IRequirement {
+
+ /** Requirement title */
+ title?: (string|null);
+
+ /** Requirement documentationUri */
+ documentationUri?: (string|null);
+
+ /** Requirement affectedRegionCodes */
+ affectedRegionCodes?: (string[]|null);
+ }
+
+ /** Represents a Requirement. */
+ class Requirement implements IRequirement {
+
+ /**
+ * Constructs a new Requirement.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Program.IRequirement);
+
+ /** Requirement title. */
+ public title: string;
+
+ /** Requirement documentationUri. */
+ public documentationUri: string;
+
+ /** Requirement affectedRegionCodes. */
+ public affectedRegionCodes: string[];
+
+ /**
+ * Creates a new Requirement instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Requirement instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Program.IRequirement): google.shopping.merchant.accounts.v1beta.Program.Requirement;
+
+ /**
+ * Encodes the specified Requirement message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Program.Requirement.verify|verify} messages.
+ * @param message Requirement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Program.IRequirement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Requirement message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Program.Requirement.verify|verify} messages.
+ * @param message Requirement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Program.IRequirement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Requirement message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Requirement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Program.Requirement;
+
+ /**
+ * Decodes a Requirement message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Requirement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Program.Requirement;
+
+ /**
+ * Verifies a Requirement message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Requirement message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Requirement
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Program.Requirement;
+
+ /**
+ * Creates a plain object from a Requirement message. Also converts values to other types if specified.
+ * @param message Requirement
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Program.Requirement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Requirement to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Requirement
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ NOT_ELIGIBLE = 1,
+ ELIGIBLE = 2,
+ ENABLED = 3
+ }
+ }
+
+ /** Properties of a GetProgramRequest. */
+ interface IGetProgramRequest {
+
+ /** GetProgramRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetProgramRequest. */
+ class GetProgramRequest implements IGetProgramRequest {
+
+ /**
+ * Constructs a new GetProgramRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetProgramRequest);
+
+ /** GetProgramRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetProgramRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetProgramRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetProgramRequest): google.shopping.merchant.accounts.v1beta.GetProgramRequest;
+
+ /**
+ * Encodes the specified GetProgramRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetProgramRequest.verify|verify} messages.
+ * @param message GetProgramRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetProgramRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProgramRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetProgramRequest.verify|verify} messages.
+ * @param message GetProgramRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetProgramRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetProgramRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetProgramRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetProgramRequest;
+
+ /**
+ * Decodes a GetProgramRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetProgramRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetProgramRequest;
+
+ /**
+ * Verifies a GetProgramRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetProgramRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetProgramRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetProgramRequest;
+
+ /**
+ * Creates a plain object from a GetProgramRequest message. Also converts values to other types if specified.
+ * @param message GetProgramRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetProgramRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetProgramRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetProgramRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProgramsRequest. */
+ interface IListProgramsRequest {
+
+ /** ListProgramsRequest parent */
+ parent?: (string|null);
+
+ /** ListProgramsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProgramsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProgramsRequest. */
+ class ListProgramsRequest implements IListProgramsRequest {
+
+ /**
+ * Constructs a new ListProgramsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListProgramsRequest);
+
+ /** ListProgramsRequest parent. */
+ public parent: string;
+
+ /** ListProgramsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProgramsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProgramsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProgramsRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListProgramsRequest): google.shopping.merchant.accounts.v1beta.ListProgramsRequest;
+
+ /**
+ * Encodes the specified ListProgramsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListProgramsRequest.verify|verify} messages.
+ * @param message ListProgramsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListProgramsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProgramsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListProgramsRequest.verify|verify} messages.
+ * @param message ListProgramsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListProgramsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProgramsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProgramsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListProgramsRequest;
+
+ /**
+ * Decodes a ListProgramsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProgramsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListProgramsRequest;
+
+ /**
+ * Verifies a ListProgramsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProgramsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProgramsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListProgramsRequest;
+
+ /**
+ * Creates a plain object from a ListProgramsRequest message. Also converts values to other types if specified.
+ * @param message ListProgramsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListProgramsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProgramsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProgramsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProgramsResponse. */
+ interface IListProgramsResponse {
+
+ /** ListProgramsResponse programs */
+ programs?: (google.shopping.merchant.accounts.v1beta.IProgram[]|null);
+
+ /** ListProgramsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListProgramsResponse. */
+ class ListProgramsResponse implements IListProgramsResponse {
+
+ /**
+ * Constructs a new ListProgramsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListProgramsResponse);
+
+ /** ListProgramsResponse programs. */
+ public programs: google.shopping.merchant.accounts.v1beta.IProgram[];
+
+ /** ListProgramsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListProgramsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProgramsResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListProgramsResponse): google.shopping.merchant.accounts.v1beta.ListProgramsResponse;
+
+ /**
+ * Encodes the specified ListProgramsResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListProgramsResponse.verify|verify} messages.
+ * @param message ListProgramsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListProgramsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProgramsResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListProgramsResponse.verify|verify} messages.
+ * @param message ListProgramsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListProgramsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProgramsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProgramsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListProgramsResponse;
+
+ /**
+ * Decodes a ListProgramsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProgramsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListProgramsResponse;
+
+ /**
+ * Verifies a ListProgramsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProgramsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProgramsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListProgramsResponse;
+
+ /**
+ * Creates a plain object from a ListProgramsResponse message. Also converts values to other types if specified.
+ * @param message ListProgramsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListProgramsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProgramsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProgramsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableProgramRequest. */
+ interface IEnableProgramRequest {
+
+ /** EnableProgramRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an EnableProgramRequest. */
+ class EnableProgramRequest implements IEnableProgramRequest {
+
+ /**
+ * Constructs a new EnableProgramRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest);
+
+ /** EnableProgramRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new EnableProgramRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableProgramRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest): google.shopping.merchant.accounts.v1beta.EnableProgramRequest;
+
+ /**
+ * Encodes the specified EnableProgramRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.EnableProgramRequest.verify|verify} messages.
+ * @param message EnableProgramRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableProgramRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.EnableProgramRequest.verify|verify} messages.
+ * @param message EnableProgramRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableProgramRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableProgramRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.EnableProgramRequest;
+
+ /**
+ * Decodes an EnableProgramRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableProgramRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.EnableProgramRequest;
+
+ /**
+ * Verifies an EnableProgramRequest message.
+ * @param message Plain 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 EnableProgramRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableProgramRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.EnableProgramRequest;
+
+ /**
+ * Creates a plain object from an EnableProgramRequest message. Also converts values to other types if specified.
+ * @param message EnableProgramRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.EnableProgramRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableProgramRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableProgramRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableProgramRequest. */
+ interface IDisableProgramRequest {
+
+ /** DisableProgramRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DisableProgramRequest. */
+ class DisableProgramRequest implements IDisableProgramRequest {
+
+ /**
+ * Constructs a new DisableProgramRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest);
+
+ /** DisableProgramRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DisableProgramRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableProgramRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest): google.shopping.merchant.accounts.v1beta.DisableProgramRequest;
+
+ /**
+ * Encodes the specified DisableProgramRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DisableProgramRequest.verify|verify} messages.
+ * @param message DisableProgramRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableProgramRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DisableProgramRequest.verify|verify} messages.
+ * @param message DisableProgramRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableProgramRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableProgramRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.DisableProgramRequest;
+
+ /**
+ * Decodes a DisableProgramRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableProgramRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.DisableProgramRequest;
+
+ /**
+ * Verifies a DisableProgramRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableProgramRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableProgramRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.DisableProgramRequest;
+
+ /**
+ * Creates a plain object from a DisableProgramRequest message. Also converts values to other types if specified.
+ * @param message DisableProgramRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.DisableProgramRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableProgramRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableProgramRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a RegionsService */
+ class RegionsService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new RegionsService 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 RegionsService 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): RegionsService;
+
+ /**
+ * Calls GetRegion.
+ * @param request GetRegionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Region
+ */
+ public getRegion(request: google.shopping.merchant.accounts.v1beta.IGetRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.GetRegionCallback): void;
+
+ /**
+ * Calls GetRegion.
+ * @param request GetRegionRequest message or plain object
+ * @returns Promise
+ */
+ public getRegion(request: google.shopping.merchant.accounts.v1beta.IGetRegionRequest): Promise;
+
+ /**
+ * Calls CreateRegion.
+ * @param request CreateRegionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Region
+ */
+ public createRegion(request: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.CreateRegionCallback): void;
+
+ /**
+ * Calls CreateRegion.
+ * @param request CreateRegionRequest message or plain object
+ * @returns Promise
+ */
+ public createRegion(request: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest): Promise;
+
+ /**
+ * Calls UpdateRegion.
+ * @param request UpdateRegionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Region
+ */
+ public updateRegion(request: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.UpdateRegionCallback): void;
+
+ /**
+ * Calls UpdateRegion.
+ * @param request UpdateRegionRequest message or plain object
+ * @returns Promise
+ */
+ public updateRegion(request: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest): Promise;
+
+ /**
+ * Calls DeleteRegion.
+ * @param request DeleteRegionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteRegion(request: google.shopping.merchant.accounts.v1beta.IDeleteRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.DeleteRegionCallback): void;
+
+ /**
+ * Calls DeleteRegion.
+ * @param request DeleteRegionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteRegion(request: google.shopping.merchant.accounts.v1beta.IDeleteRegionRequest): Promise;
+
+ /**
+ * Calls ListRegions.
+ * @param request ListRegionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRegionsResponse
+ */
+ public listRegions(request: google.shopping.merchant.accounts.v1beta.IListRegionsRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.ListRegionsCallback): void;
+
+ /**
+ * Calls ListRegions.
+ * @param request ListRegionsRequest message or plain object
+ * @returns Promise
+ */
+ public listRegions(request: google.shopping.merchant.accounts.v1beta.IListRegionsRequest): Promise;
+ }
+
+ namespace RegionsService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.RegionsService|getRegion}.
+ * @param error Error, if any
+ * @param [response] Region
+ */
+ type GetRegionCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Region) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.RegionsService|createRegion}.
+ * @param error Error, if any
+ * @param [response] Region
+ */
+ type CreateRegionCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Region) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.RegionsService|updateRegion}.
+ * @param error Error, if any
+ * @param [response] Region
+ */
+ type UpdateRegionCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.Region) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.RegionsService|deleteRegion}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteRegionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.RegionsService|listRegions}.
+ * @param error Error, if any
+ * @param [response] ListRegionsResponse
+ */
+ type ListRegionsCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ListRegionsResponse) => void;
+ }
+
+ /** Properties of a GetRegionRequest. */
+ interface IGetRegionRequest {
+
+ /** GetRegionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetRegionRequest. */
+ class GetRegionRequest implements IGetRegionRequest {
+
+ /**
+ * Constructs a new GetRegionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetRegionRequest);
+
+ /** GetRegionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetRegionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetRegionRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetRegionRequest): google.shopping.merchant.accounts.v1beta.GetRegionRequest;
+
+ /**
+ * Encodes the specified GetRegionRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetRegionRequest.verify|verify} messages.
+ * @param message GetRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetRegionRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetRegionRequest.verify|verify} messages.
+ * @param message GetRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetRegionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetRegionRequest;
+
+ /**
+ * Decodes a GetRegionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetRegionRequest;
+
+ /**
+ * Verifies a GetRegionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetRegionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetRegionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetRegionRequest;
+
+ /**
+ * Creates a plain object from a GetRegionRequest message. Also converts values to other types if specified.
+ * @param message GetRegionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetRegionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetRegionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetRegionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateRegionRequest. */
+ interface ICreateRegionRequest {
+
+ /** CreateRegionRequest parent */
+ parent?: (string|null);
+
+ /** CreateRegionRequest regionId */
+ regionId?: (string|null);
+
+ /** CreateRegionRequest region */
+ region?: (google.shopping.merchant.accounts.v1beta.IRegion|null);
+ }
+
+ /** Represents a CreateRegionRequest. */
+ class CreateRegionRequest implements ICreateRegionRequest {
+
+ /**
+ * Constructs a new CreateRegionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest);
+
+ /** CreateRegionRequest parent. */
+ public parent: string;
+
+ /** CreateRegionRequest regionId. */
+ public regionId: string;
+
+ /** CreateRegionRequest region. */
+ public region?: (google.shopping.merchant.accounts.v1beta.IRegion|null);
+
+ /**
+ * Creates a new CreateRegionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateRegionRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest): google.shopping.merchant.accounts.v1beta.CreateRegionRequest;
+
+ /**
+ * Encodes the specified CreateRegionRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateRegionRequest.verify|verify} messages.
+ * @param message CreateRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateRegionRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateRegionRequest.verify|verify} messages.
+ * @param message CreateRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateRegionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CreateRegionRequest;
+
+ /**
+ * Decodes a CreateRegionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CreateRegionRequest;
+
+ /**
+ * Verifies a CreateRegionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateRegionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateRegionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CreateRegionRequest;
+
+ /**
+ * Creates a plain object from a CreateRegionRequest message. Also converts values to other types if specified.
+ * @param message CreateRegionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CreateRegionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateRegionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateRegionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateRegionRequest. */
+ interface IUpdateRegionRequest {
+
+ /** UpdateRegionRequest region */
+ region?: (google.shopping.merchant.accounts.v1beta.IRegion|null);
+
+ /** UpdateRegionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateRegionRequest. */
+ class UpdateRegionRequest implements IUpdateRegionRequest {
+
+ /**
+ * Constructs a new UpdateRegionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest);
+
+ /** UpdateRegionRequest region. */
+ public region?: (google.shopping.merchant.accounts.v1beta.IRegion|null);
+
+ /** UpdateRegionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateRegionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateRegionRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest): google.shopping.merchant.accounts.v1beta.UpdateRegionRequest;
+
+ /**
+ * Encodes the specified UpdateRegionRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateRegionRequest.verify|verify} messages.
+ * @param message UpdateRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateRegionRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateRegionRequest.verify|verify} messages.
+ * @param message UpdateRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateRegionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.UpdateRegionRequest;
+
+ /**
+ * Decodes an UpdateRegionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.UpdateRegionRequest;
+
+ /**
+ * Verifies an UpdateRegionRequest message.
+ * @param message Plain 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 UpdateRegionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateRegionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.UpdateRegionRequest;
+
+ /**
+ * Creates a plain object from an UpdateRegionRequest message. Also converts values to other types if specified.
+ * @param message UpdateRegionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.UpdateRegionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateRegionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateRegionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteRegionRequest. */
+ interface IDeleteRegionRequest {
+
+ /** DeleteRegionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteRegionRequest. */
+ class DeleteRegionRequest implements IDeleteRegionRequest {
+
+ /**
+ * Constructs a new DeleteRegionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IDeleteRegionRequest);
+
+ /** DeleteRegionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteRegionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteRegionRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IDeleteRegionRequest): google.shopping.merchant.accounts.v1beta.DeleteRegionRequest;
+
+ /**
+ * Encodes the specified DeleteRegionRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteRegionRequest.verify|verify} messages.
+ * @param message DeleteRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IDeleteRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteRegionRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteRegionRequest.verify|verify} messages.
+ * @param message DeleteRegionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IDeleteRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteRegionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.DeleteRegionRequest;
+
+ /**
+ * Decodes a DeleteRegionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteRegionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.DeleteRegionRequest;
+
+ /**
+ * Verifies a DeleteRegionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteRegionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteRegionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.DeleteRegionRequest;
+
+ /**
+ * Creates a plain object from a DeleteRegionRequest message. Also converts values to other types if specified.
+ * @param message DeleteRegionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.DeleteRegionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteRegionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteRegionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRegionsRequest. */
+ interface IListRegionsRequest {
+
+ /** ListRegionsRequest parent */
+ parent?: (string|null);
+
+ /** ListRegionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListRegionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListRegionsRequest. */
+ class ListRegionsRequest implements IListRegionsRequest {
+
+ /**
+ * Constructs a new ListRegionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListRegionsRequest);
+
+ /** ListRegionsRequest parent. */
+ public parent: string;
+
+ /** ListRegionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListRegionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListRegionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRegionsRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListRegionsRequest): google.shopping.merchant.accounts.v1beta.ListRegionsRequest;
+
+ /**
+ * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListRegionsRequest.verify|verify} messages.
+ * @param message ListRegionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListRegionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListRegionsRequest.verify|verify} messages.
+ * @param message ListRegionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListRegionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRegionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRegionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListRegionsRequest;
+
+ /**
+ * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRegionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListRegionsRequest;
+
+ /**
+ * Verifies a ListRegionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRegionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListRegionsRequest;
+
+ /**
+ * Creates a plain object from a ListRegionsRequest message. Also converts values to other types if specified.
+ * @param message ListRegionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListRegionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRegionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRegionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRegionsResponse. */
+ interface IListRegionsResponse {
+
+ /** ListRegionsResponse regions */
+ regions?: (google.shopping.merchant.accounts.v1beta.IRegion[]|null);
+
+ /** ListRegionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListRegionsResponse. */
+ class ListRegionsResponse implements IListRegionsResponse {
+
+ /**
+ * Constructs a new ListRegionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IListRegionsResponse);
+
+ /** ListRegionsResponse regions. */
+ public regions: google.shopping.merchant.accounts.v1beta.IRegion[];
+
+ /** ListRegionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListRegionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRegionsResponse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IListRegionsResponse): google.shopping.merchant.accounts.v1beta.ListRegionsResponse;
+
+ /**
+ * Encodes the specified ListRegionsResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListRegionsResponse.verify|verify} messages.
+ * @param message ListRegionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IListRegionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRegionsResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListRegionsResponse.verify|verify} messages.
+ * @param message ListRegionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IListRegionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRegionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRegionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ListRegionsResponse;
+
+ /**
+ * Decodes a ListRegionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRegionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ListRegionsResponse;
+
+ /**
+ * Verifies a ListRegionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRegionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRegionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ListRegionsResponse;
+
+ /**
+ * Creates a plain object from a ListRegionsResponse message. Also converts values to other types if specified.
+ * @param message ListRegionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ListRegionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRegionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRegionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Region. */
+ interface IRegion {
+
+ /** Region name */
+ name?: (string|null);
+
+ /** Region displayName */
+ displayName?: (string|null);
+
+ /** Region postalCodeArea */
+ postalCodeArea?: (google.shopping.merchant.accounts.v1beta.Region.IPostalCodeArea|null);
+
+ /** Region geotargetArea */
+ geotargetArea?: (google.shopping.merchant.accounts.v1beta.Region.IGeoTargetArea|null);
+
+ /** Region regionalInventoryEligible */
+ regionalInventoryEligible?: (google.protobuf.IBoolValue|null);
+
+ /** Region shippingEligible */
+ shippingEligible?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents a Region. */
+ class Region implements IRegion {
+
+ /**
+ * Constructs a new Region.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IRegion);
+
+ /** Region name. */
+ public name: string;
+
+ /** Region displayName. */
+ public displayName?: (string|null);
+
+ /** Region postalCodeArea. */
+ public postalCodeArea?: (google.shopping.merchant.accounts.v1beta.Region.IPostalCodeArea|null);
+
+ /** Region geotargetArea. */
+ public geotargetArea?: (google.shopping.merchant.accounts.v1beta.Region.IGeoTargetArea|null);
+
+ /** Region regionalInventoryEligible. */
+ public regionalInventoryEligible?: (google.protobuf.IBoolValue|null);
+
+ /** Region shippingEligible. */
+ public shippingEligible?: (google.protobuf.IBoolValue|null);
+
+ /** Region _displayName. */
+ public _displayName?: "displayName";
+
+ /**
+ * Creates a new Region instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Region instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IRegion): google.shopping.merchant.accounts.v1beta.Region;
+
+ /**
+ * Encodes the specified Region message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.verify|verify} messages.
+ * @param message Region message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IRegion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Region message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.verify|verify} messages.
+ * @param message Region message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IRegion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Region message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Region
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Region;
+
+ /**
+ * Decodes a Region message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Region
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Region;
+
+ /**
+ * Verifies a Region message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Region message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Region
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Region;
+
+ /**
+ * Creates a plain object from a Region message. Also converts values to other types if specified.
+ * @param message Region
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Region, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Region to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Region
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Region {
+
+ /** Properties of a PostalCodeArea. */
+ interface IPostalCodeArea {
+
+ /** PostalCodeArea regionCode */
+ regionCode?: (string|null);
+
+ /** PostalCodeArea postalCodes */
+ postalCodes?: (google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.IPostalCodeRange[]|null);
+ }
+
+ /** Represents a PostalCodeArea. */
+ class PostalCodeArea implements IPostalCodeArea {
+
+ /**
+ * Constructs a new PostalCodeArea.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Region.IPostalCodeArea);
+
+ /** PostalCodeArea regionCode. */
+ public regionCode: string;
+
+ /** PostalCodeArea postalCodes. */
+ public postalCodes: google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.IPostalCodeRange[];
+
+ /**
+ * Creates a new PostalCodeArea instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PostalCodeArea instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Region.IPostalCodeArea): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea;
+
+ /**
+ * Encodes the specified PostalCodeArea message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.verify|verify} messages.
+ * @param message PostalCodeArea message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Region.IPostalCodeArea, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PostalCodeArea message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.verify|verify} messages.
+ * @param message PostalCodeArea message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Region.IPostalCodeArea, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PostalCodeArea message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PostalCodeArea
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea;
+
+ /**
+ * Decodes a PostalCodeArea message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PostalCodeArea
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea;
+
+ /**
+ * Verifies a PostalCodeArea message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PostalCodeArea message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PostalCodeArea
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea;
+
+ /**
+ * Creates a plain object from a PostalCodeArea message. Also converts values to other types if specified.
+ * @param message PostalCodeArea
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PostalCodeArea to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PostalCodeArea
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PostalCodeArea {
+
+ /** Properties of a PostalCodeRange. */
+ interface IPostalCodeRange {
+
+ /** PostalCodeRange begin */
+ begin?: (string|null);
+
+ /** PostalCodeRange end */
+ end?: (string|null);
+ }
+
+ /** Represents a PostalCodeRange. */
+ class PostalCodeRange implements IPostalCodeRange {
+
+ /**
+ * Constructs a new PostalCodeRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.IPostalCodeRange);
+
+ /** PostalCodeRange begin. */
+ public begin: string;
+
+ /** PostalCodeRange end. */
+ public end: string;
+
+ /**
+ * Creates a new PostalCodeRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PostalCodeRange instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.IPostalCodeRange): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange;
+
+ /**
+ * Encodes the specified PostalCodeRange message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange.verify|verify} messages.
+ * @param message PostalCodeRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.IPostalCodeRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PostalCodeRange message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange.verify|verify} messages.
+ * @param message PostalCodeRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.IPostalCodeRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PostalCodeRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PostalCodeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange;
+
+ /**
+ * Decodes a PostalCodeRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PostalCodeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange;
+
+ /**
+ * Verifies a PostalCodeRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PostalCodeRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PostalCodeRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange;
+
+ /**
+ * Creates a plain object from a PostalCodeRange message. Also converts values to other types if specified.
+ * @param message PostalCodeRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Region.PostalCodeArea.PostalCodeRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PostalCodeRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PostalCodeRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeoTargetArea. */
+ interface IGeoTargetArea {
+
+ /** GeoTargetArea geotargetCriteriaIds */
+ geotargetCriteriaIds?: ((number|Long|string)[]|null);
+ }
+
+ /** Represents a GeoTargetArea. */
+ class GeoTargetArea implements IGeoTargetArea {
+
+ /**
+ * Constructs a new GeoTargetArea.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Region.IGeoTargetArea);
+
+ /** GeoTargetArea geotargetCriteriaIds. */
+ public geotargetCriteriaIds: (number|Long|string)[];
+
+ /**
+ * Creates a new GeoTargetArea instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeoTargetArea instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Region.IGeoTargetArea): google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea;
+
+ /**
+ * Encodes the specified GeoTargetArea message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea.verify|verify} messages.
+ * @param message GeoTargetArea message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Region.IGeoTargetArea, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeoTargetArea message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea.verify|verify} messages.
+ * @param message GeoTargetArea message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Region.IGeoTargetArea, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeoTargetArea message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeoTargetArea
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea;
+
+ /**
+ * Decodes a GeoTargetArea message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeoTargetArea
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea;
+
+ /**
+ * Verifies a GeoTargetArea message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeoTargetArea message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeoTargetArea
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea;
+
+ /**
+ * Creates a plain object from a GeoTargetArea message. Also converts values to other types if specified.
+ * @param message GeoTargetArea
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeoTargetArea to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeoTargetArea
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents a ShippingSettingsService */
+ class ShippingSettingsService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ShippingSettingsService 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 ShippingSettingsService 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): ShippingSettingsService;
+
+ /**
+ * Calls GetShippingSettings.
+ * @param request GetShippingSettingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ShippingSettings
+ */
+ public getShippingSettings(request: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest, callback: google.shopping.merchant.accounts.v1beta.ShippingSettingsService.GetShippingSettingsCallback): void;
+
+ /**
+ * Calls GetShippingSettings.
+ * @param request GetShippingSettingsRequest message or plain object
+ * @returns Promise
+ */
+ public getShippingSettings(request: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest): Promise;
+
+ /**
+ * Calls InsertShippingSettings.
+ * @param request InsertShippingSettingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ShippingSettings
+ */
+ public insertShippingSettings(request: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest, callback: google.shopping.merchant.accounts.v1beta.ShippingSettingsService.InsertShippingSettingsCallback): void;
+
+ /**
+ * Calls InsertShippingSettings.
+ * @param request InsertShippingSettingsRequest message or plain object
+ * @returns Promise
+ */
+ public insertShippingSettings(request: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest): Promise;
+ }
+
+ namespace ShippingSettingsService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.ShippingSettingsService|getShippingSettings}.
+ * @param error Error, if any
+ * @param [response] ShippingSettings
+ */
+ type GetShippingSettingsCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ShippingSettings) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.ShippingSettingsService|insertShippingSettings}.
+ * @param error Error, if any
+ * @param [response] ShippingSettings
+ */
+ type InsertShippingSettingsCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.ShippingSettings) => void;
+ }
+
+ /** Properties of a ShippingSettings. */
+ interface IShippingSettings {
+
+ /** ShippingSettings name */
+ name?: (string|null);
+
+ /** ShippingSettings services */
+ services?: (google.shopping.merchant.accounts.v1beta.IService[]|null);
+
+ /** ShippingSettings warehouses */
+ warehouses?: (google.shopping.merchant.accounts.v1beta.IWarehouse[]|null);
+
+ /** ShippingSettings etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a ShippingSettings. */
+ class ShippingSettings implements IShippingSettings {
+
+ /**
+ * Constructs a new ShippingSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IShippingSettings);
+
+ /** ShippingSettings name. */
+ public name: string;
+
+ /** ShippingSettings services. */
+ public services: google.shopping.merchant.accounts.v1beta.IService[];
+
+ /** ShippingSettings warehouses. */
+ public warehouses: google.shopping.merchant.accounts.v1beta.IWarehouse[];
+
+ /** ShippingSettings etag. */
+ public etag: string;
+
+ /**
+ * Creates a new ShippingSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShippingSettings instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IShippingSettings): google.shopping.merchant.accounts.v1beta.ShippingSettings;
+
+ /**
+ * Encodes the specified ShippingSettings message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ShippingSettings.verify|verify} messages.
+ * @param message ShippingSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IShippingSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShippingSettings message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ShippingSettings.verify|verify} messages.
+ * @param message ShippingSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IShippingSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShippingSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShippingSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.ShippingSettings;
+
+ /**
+ * Decodes a ShippingSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShippingSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.ShippingSettings;
+
+ /**
+ * Verifies a ShippingSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShippingSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShippingSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.ShippingSettings;
+
+ /**
+ * Creates a plain object from a ShippingSettings message. Also converts values to other types if specified.
+ * @param message ShippingSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.ShippingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShippingSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShippingSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Service. */
+ interface IService {
+
+ /** Service serviceName */
+ serviceName?: (string|null);
+
+ /** Service active */
+ active?: (boolean|null);
+
+ /** Service deliveryCountries */
+ deliveryCountries?: (string[]|null);
+
+ /** Service currencyCode */
+ currencyCode?: (string|null);
+
+ /** Service deliveryTime */
+ deliveryTime?: (google.shopping.merchant.accounts.v1beta.IDeliveryTime|null);
+
+ /** Service rateGroups */
+ rateGroups?: (google.shopping.merchant.accounts.v1beta.IRateGroup[]|null);
+
+ /** Service shipmentType */
+ shipmentType?: (google.shopping.merchant.accounts.v1beta.Service.ShipmentType|keyof typeof google.shopping.merchant.accounts.v1beta.Service.ShipmentType|null);
+
+ /** Service minimumOrderValue */
+ minimumOrderValue?: (google.shopping.type.IPrice|null);
+
+ /** Service minimumOrderValueTable */
+ minimumOrderValueTable?: (google.shopping.merchant.accounts.v1beta.IMinimumOrderValueTable|null);
+
+ /** Service storeConfig */
+ storeConfig?: (google.shopping.merchant.accounts.v1beta.Service.IStoreConfig|null);
+
+ /** Service loyaltyPrograms */
+ loyaltyPrograms?: (google.shopping.merchant.accounts.v1beta.Service.ILoyaltyProgram[]|null);
+ }
+
+ /** Represents a Service. */
+ class Service implements IService {
+
+ /**
+ * Constructs a new Service.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IService);
+
+ /** Service serviceName. */
+ public serviceName?: (string|null);
+
+ /** Service active. */
+ public active?: (boolean|null);
+
+ /** Service deliveryCountries. */
+ public deliveryCountries: string[];
+
+ /** Service currencyCode. */
+ public currencyCode?: (string|null);
+
+ /** Service deliveryTime. */
+ public deliveryTime?: (google.shopping.merchant.accounts.v1beta.IDeliveryTime|null);
+
+ /** Service rateGroups. */
+ public rateGroups: google.shopping.merchant.accounts.v1beta.IRateGroup[];
+
+ /** Service shipmentType. */
+ public shipmentType?: (google.shopping.merchant.accounts.v1beta.Service.ShipmentType|keyof typeof google.shopping.merchant.accounts.v1beta.Service.ShipmentType|null);
+
+ /** Service minimumOrderValue. */
+ public minimumOrderValue?: (google.shopping.type.IPrice|null);
+
+ /** Service minimumOrderValueTable. */
+ public minimumOrderValueTable?: (google.shopping.merchant.accounts.v1beta.IMinimumOrderValueTable|null);
+
+ /** Service storeConfig. */
+ public storeConfig?: (google.shopping.merchant.accounts.v1beta.Service.IStoreConfig|null);
+
+ /** Service loyaltyPrograms. */
+ public loyaltyPrograms: google.shopping.merchant.accounts.v1beta.Service.ILoyaltyProgram[];
+
+ /** Service _serviceName. */
+ public _serviceName?: "serviceName";
+
+ /** Service _active. */
+ public _active?: "active";
+
+ /** Service _currencyCode. */
+ public _currencyCode?: "currencyCode";
+
+ /** Service _deliveryTime. */
+ public _deliveryTime?: "deliveryTime";
+
+ /** Service _shipmentType. */
+ public _shipmentType?: "shipmentType";
+
+ /** Service _minimumOrderValue. */
+ public _minimumOrderValue?: "minimumOrderValue";
+
+ /** Service _minimumOrderValueTable. */
+ public _minimumOrderValueTable?: "minimumOrderValueTable";
+
+ /** Service _storeConfig. */
+ public _storeConfig?: "storeConfig";
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Service instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IService): google.shopping.merchant.accounts.v1beta.Service;
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Service;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Service;
+
+ /**
+ * Verifies a Service message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Service
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Service;
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @param message Service
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Service, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Service to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Service
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Service {
+
+ /** Properties of a StoreConfig. */
+ interface IStoreConfig {
+
+ /** StoreConfig storeServiceType */
+ storeServiceType?: (google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType|keyof typeof google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType|null);
+
+ /** StoreConfig storeCodes */
+ storeCodes?: (string[]|null);
+
+ /** StoreConfig cutoffConfig */
+ cutoffConfig?: (google.shopping.merchant.accounts.v1beta.Service.StoreConfig.ICutoffConfig|null);
+
+ /** StoreConfig serviceRadius */
+ serviceRadius?: (google.shopping.merchant.accounts.v1beta.IDistance|null);
+ }
+
+ /** Represents a StoreConfig. */
+ class StoreConfig implements IStoreConfig {
+
+ /**
+ * Constructs a new StoreConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Service.IStoreConfig);
+
+ /** StoreConfig storeServiceType. */
+ public storeServiceType?: (google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType|keyof typeof google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType|null);
+
+ /** StoreConfig storeCodes. */
+ public storeCodes: string[];
+
+ /** StoreConfig cutoffConfig. */
+ public cutoffConfig?: (google.shopping.merchant.accounts.v1beta.Service.StoreConfig.ICutoffConfig|null);
+
+ /** StoreConfig serviceRadius. */
+ public serviceRadius?: (google.shopping.merchant.accounts.v1beta.IDistance|null);
+
+ /** StoreConfig _storeServiceType. */
+ public _storeServiceType?: "storeServiceType";
+
+ /** StoreConfig _cutoffConfig. */
+ public _cutoffConfig?: "cutoffConfig";
+
+ /** StoreConfig _serviceRadius. */
+ public _serviceRadius?: "serviceRadius";
+
+ /**
+ * Creates a new StoreConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StoreConfig instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Service.IStoreConfig): google.shopping.merchant.accounts.v1beta.Service.StoreConfig;
+
+ /**
+ * Encodes the specified StoreConfig message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.StoreConfig.verify|verify} messages.
+ * @param message StoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Service.IStoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StoreConfig message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.StoreConfig.verify|verify} messages.
+ * @param message StoreConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Service.IStoreConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StoreConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Service.StoreConfig;
+
+ /**
+ * Decodes a StoreConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StoreConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Service.StoreConfig;
+
+ /**
+ * Verifies a StoreConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StoreConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StoreConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Service.StoreConfig;
+
+ /**
+ * Creates a plain object from a StoreConfig message. Also converts values to other types if specified.
+ * @param message StoreConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Service.StoreConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StoreConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StoreConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StoreConfig {
+
+ /** Properties of a CutoffConfig. */
+ interface ICutoffConfig {
+
+ /** CutoffConfig localCutoffTime */
+ localCutoffTime?: (google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.ILocalCutoffTime|null);
+
+ /** CutoffConfig storeCloseOffsetHours */
+ storeCloseOffsetHours?: (number|Long|string|null);
+
+ /** CutoffConfig noDeliveryPostCutoff */
+ noDeliveryPostCutoff?: (boolean|null);
+ }
+
+ /** Represents a CutoffConfig. */
+ class CutoffConfig implements ICutoffConfig {
+
+ /**
+ * Constructs a new CutoffConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.ICutoffConfig);
+
+ /** CutoffConfig localCutoffTime. */
+ public localCutoffTime?: (google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.ILocalCutoffTime|null);
+
+ /** CutoffConfig storeCloseOffsetHours. */
+ public storeCloseOffsetHours?: (number|Long|string|null);
+
+ /** CutoffConfig noDeliveryPostCutoff. */
+ public noDeliveryPostCutoff?: (boolean|null);
+
+ /** CutoffConfig _localCutoffTime. */
+ public _localCutoffTime?: "localCutoffTime";
+
+ /** CutoffConfig _storeCloseOffsetHours. */
+ public _storeCloseOffsetHours?: "storeCloseOffsetHours";
+
+ /** CutoffConfig _noDeliveryPostCutoff. */
+ public _noDeliveryPostCutoff?: "noDeliveryPostCutoff";
+
+ /**
+ * Creates a new CutoffConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CutoffConfig instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.ICutoffConfig): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig;
+
+ /**
+ * Encodes the specified CutoffConfig message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.verify|verify} messages.
+ * @param message CutoffConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.ICutoffConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CutoffConfig message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.verify|verify} messages.
+ * @param message CutoffConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.ICutoffConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CutoffConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CutoffConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig;
+
+ /**
+ * Decodes a CutoffConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CutoffConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig;
+
+ /**
+ * Verifies a CutoffConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CutoffConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CutoffConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig;
+
+ /**
+ * Creates a plain object from a CutoffConfig message. Also converts values to other types if specified.
+ * @param message CutoffConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CutoffConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CutoffConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CutoffConfig {
+
+ /** Properties of a LocalCutoffTime. */
+ interface ILocalCutoffTime {
+
+ /** LocalCutoffTime hour */
+ hour?: (number|Long|string|null);
+
+ /** LocalCutoffTime minute */
+ minute?: (number|Long|string|null);
+ }
+
+ /** Represents a LocalCutoffTime. */
+ class LocalCutoffTime implements ILocalCutoffTime {
+
+ /**
+ * Constructs a new LocalCutoffTime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.ILocalCutoffTime);
+
+ /** LocalCutoffTime hour. */
+ public hour?: (number|Long|string|null);
+
+ /** LocalCutoffTime minute. */
+ public minute?: (number|Long|string|null);
+
+ /** LocalCutoffTime _hour. */
+ public _hour?: "hour";
+
+ /** LocalCutoffTime _minute. */
+ public _minute?: "minute";
+
+ /**
+ * Creates a new LocalCutoffTime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocalCutoffTime instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.ILocalCutoffTime): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime;
+
+ /**
+ * Encodes the specified LocalCutoffTime message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime.verify|verify} messages.
+ * @param message LocalCutoffTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.ILocalCutoffTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocalCutoffTime message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime.verify|verify} messages.
+ * @param message LocalCutoffTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.ILocalCutoffTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocalCutoffTime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocalCutoffTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime;
+
+ /**
+ * Decodes a LocalCutoffTime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocalCutoffTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime;
+
+ /**
+ * Verifies a LocalCutoffTime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocalCutoffTime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocalCutoffTime
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime;
+
+ /**
+ * Creates a plain object from a LocalCutoffTime message. Also converts values to other types if specified.
+ * @param message LocalCutoffTime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocalCutoffTime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocalCutoffTime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** StoreServiceType enum. */
+ enum StoreServiceType {
+ STORE_SERVICE_TYPE_UNSPECIFIED = 0,
+ ALL_STORES = 1,
+ SELECTED_STORES = 2
+ }
+ }
+
+ /** Properties of a LoyaltyProgram. */
+ interface ILoyaltyProgram {
+
+ /** LoyaltyProgram programLabel */
+ programLabel?: (string|null);
+
+ /** LoyaltyProgram loyaltyProgramTiers */
+ loyaltyProgramTiers?: (google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.ILoyaltyProgramTiers[]|null);
+ }
+
+ /** Represents a LoyaltyProgram. */
+ class LoyaltyProgram implements ILoyaltyProgram {
+
+ /**
+ * Constructs a new LoyaltyProgram.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Service.ILoyaltyProgram);
+
+ /** LoyaltyProgram programLabel. */
+ public programLabel?: (string|null);
+
+ /** LoyaltyProgram loyaltyProgramTiers. */
+ public loyaltyProgramTiers: google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.ILoyaltyProgramTiers[];
+
+ /** LoyaltyProgram _programLabel. */
+ public _programLabel?: "programLabel";
+
+ /**
+ * Creates a new LoyaltyProgram instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LoyaltyProgram instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Service.ILoyaltyProgram): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram;
+
+ /**
+ * Encodes the specified LoyaltyProgram message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.verify|verify} messages.
+ * @param message LoyaltyProgram message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Service.ILoyaltyProgram, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LoyaltyProgram message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.verify|verify} messages.
+ * @param message LoyaltyProgram message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Service.ILoyaltyProgram, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LoyaltyProgram message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LoyaltyProgram
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram;
+
+ /**
+ * Decodes a LoyaltyProgram message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LoyaltyProgram
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram;
+
+ /**
+ * Verifies a LoyaltyProgram message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LoyaltyProgram message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LoyaltyProgram
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram;
+
+ /**
+ * Creates a plain object from a LoyaltyProgram message. Also converts values to other types if specified.
+ * @param message LoyaltyProgram
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LoyaltyProgram to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LoyaltyProgram
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LoyaltyProgram {
+
+ /** Properties of a LoyaltyProgramTiers. */
+ interface ILoyaltyProgramTiers {
+
+ /** LoyaltyProgramTiers tierLabel */
+ tierLabel?: (string|null);
+ }
+
+ /** Represents a LoyaltyProgramTiers. */
+ class LoyaltyProgramTiers implements ILoyaltyProgramTiers {
+
+ /**
+ * Constructs a new LoyaltyProgramTiers.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.ILoyaltyProgramTiers);
+
+ /** LoyaltyProgramTiers tierLabel. */
+ public tierLabel?: (string|null);
+
+ /** LoyaltyProgramTiers _tierLabel. */
+ public _tierLabel?: "tierLabel";
+
+ /**
+ * Creates a new LoyaltyProgramTiers instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LoyaltyProgramTiers instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.ILoyaltyProgramTiers): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers;
+
+ /**
+ * Encodes the specified LoyaltyProgramTiers message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers.verify|verify} messages.
+ * @param message LoyaltyProgramTiers message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.ILoyaltyProgramTiers, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LoyaltyProgramTiers message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers.verify|verify} messages.
+ * @param message LoyaltyProgramTiers message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.ILoyaltyProgramTiers, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LoyaltyProgramTiers message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LoyaltyProgramTiers
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers;
+
+ /**
+ * Decodes a LoyaltyProgramTiers message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LoyaltyProgramTiers
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers;
+
+ /**
+ * Verifies a LoyaltyProgramTiers message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LoyaltyProgramTiers message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LoyaltyProgramTiers
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers;
+
+ /**
+ * Creates a plain object from a LoyaltyProgramTiers message. Also converts values to other types if specified.
+ * @param message LoyaltyProgramTiers
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LoyaltyProgramTiers to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LoyaltyProgramTiers
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ShipmentType enum. */
+ enum ShipmentType {
+ SHIPMENT_TYPE_UNSPECIFIED = 0,
+ DELIVERY = 1,
+ LOCAL_DELIVERY = 2,
+ COLLECTION_POINT = 3
+ }
+ }
+
+ /** Properties of a Distance. */
+ interface IDistance {
+
+ /** Distance value */
+ value?: (number|Long|string|null);
+
+ /** Distance unit */
+ unit?: (google.shopping.merchant.accounts.v1beta.Distance.Unit|keyof typeof google.shopping.merchant.accounts.v1beta.Distance.Unit|null);
+ }
+
+ /** Represents a Distance. */
+ class Distance implements IDistance {
+
+ /**
+ * Constructs a new Distance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IDistance);
+
+ /** Distance value. */
+ public value?: (number|Long|string|null);
+
+ /** Distance unit. */
+ public unit?: (google.shopping.merchant.accounts.v1beta.Distance.Unit|keyof typeof google.shopping.merchant.accounts.v1beta.Distance.Unit|null);
+
+ /** Distance _value. */
+ public _value?: "value";
+
+ /** Distance _unit. */
+ public _unit?: "unit";
+
+ /**
+ * Creates a new Distance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Distance instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IDistance): google.shopping.merchant.accounts.v1beta.Distance;
+
+ /**
+ * Encodes the specified Distance message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Distance.verify|verify} messages.
+ * @param message Distance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IDistance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Distance message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Distance.verify|verify} messages.
+ * @param message Distance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IDistance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Distance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Distance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Distance;
+
+ /**
+ * Decodes a Distance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Distance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Distance;
+
+ /**
+ * Verifies a Distance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Distance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Distance
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Distance;
+
+ /**
+ * Creates a plain object from a Distance message. Also converts values to other types if specified.
+ * @param message Distance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Distance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Distance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Distance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Distance {
+
+ /** Unit enum. */
+ enum Unit {
+ UNIT_UNSPECIFIED = 0,
+ MILES = 1,
+ KILOMETERS = 2
+ }
+ }
+
+ /** Properties of a Warehouse. */
+ interface IWarehouse {
+
+ /** Warehouse name */
+ name?: (string|null);
+
+ /** Warehouse shippingAddress */
+ shippingAddress?: (google.shopping.merchant.accounts.v1beta.IAddress|null);
+
+ /** Warehouse cutoffTime */
+ cutoffTime?: (google.shopping.merchant.accounts.v1beta.IWarehouseCutoffTime|null);
+
+ /** Warehouse handlingDays */
+ handlingDays?: (number|Long|string|null);
+
+ /** Warehouse businessDayConfig */
+ businessDayConfig?: (google.shopping.merchant.accounts.v1beta.IBusinessDayConfig|null);
+ }
+
+ /** Represents a Warehouse. */
+ class Warehouse implements IWarehouse {
+
+ /**
+ * Constructs a new Warehouse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IWarehouse);
+
+ /** Warehouse name. */
+ public name?: (string|null);
+
+ /** Warehouse shippingAddress. */
+ public shippingAddress?: (google.shopping.merchant.accounts.v1beta.IAddress|null);
+
+ /** Warehouse cutoffTime. */
+ public cutoffTime?: (google.shopping.merchant.accounts.v1beta.IWarehouseCutoffTime|null);
+
+ /** Warehouse handlingDays. */
+ public handlingDays?: (number|Long|string|null);
+
+ /** Warehouse businessDayConfig. */
+ public businessDayConfig?: (google.shopping.merchant.accounts.v1beta.IBusinessDayConfig|null);
+
+ /** Warehouse _name. */
+ public _name?: "name";
+
+ /** Warehouse _shippingAddress. */
+ public _shippingAddress?: "shippingAddress";
+
+ /** Warehouse _cutoffTime. */
+ public _cutoffTime?: "cutoffTime";
+
+ /** Warehouse _handlingDays. */
+ public _handlingDays?: "handlingDays";
+
+ /** Warehouse _businessDayConfig. */
+ public _businessDayConfig?: "businessDayConfig";
+
+ /**
+ * Creates a new Warehouse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Warehouse instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IWarehouse): google.shopping.merchant.accounts.v1beta.Warehouse;
+
+ /**
+ * Encodes the specified Warehouse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Warehouse.verify|verify} messages.
+ * @param message Warehouse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IWarehouse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Warehouse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Warehouse.verify|verify} messages.
+ * @param message Warehouse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IWarehouse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Warehouse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Warehouse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Warehouse;
+
+ /**
+ * Decodes a Warehouse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Warehouse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Warehouse;
+
+ /**
+ * Verifies a Warehouse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Warehouse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Warehouse
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Warehouse;
+
+ /**
+ * Creates a plain object from a Warehouse message. Also converts values to other types if specified.
+ * @param message Warehouse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Warehouse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Warehouse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Warehouse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WarehouseCutoffTime. */
+ interface IWarehouseCutoffTime {
+
+ /** WarehouseCutoffTime hour */
+ hour?: (number|null);
+
+ /** WarehouseCutoffTime minute */
+ minute?: (number|null);
+ }
+
+ /** Represents a WarehouseCutoffTime. */
+ class WarehouseCutoffTime implements IWarehouseCutoffTime {
+
+ /**
+ * Constructs a new WarehouseCutoffTime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IWarehouseCutoffTime);
+
+ /** WarehouseCutoffTime hour. */
+ public hour?: (number|null);
+
+ /** WarehouseCutoffTime minute. */
+ public minute?: (number|null);
+
+ /** WarehouseCutoffTime _hour. */
+ public _hour?: "hour";
+
+ /** WarehouseCutoffTime _minute. */
+ public _minute?: "minute";
+
+ /**
+ * Creates a new WarehouseCutoffTime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WarehouseCutoffTime instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IWarehouseCutoffTime): google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime;
+
+ /**
+ * Encodes the specified WarehouseCutoffTime message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime.verify|verify} messages.
+ * @param message WarehouseCutoffTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IWarehouseCutoffTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WarehouseCutoffTime message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime.verify|verify} messages.
+ * @param message WarehouseCutoffTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IWarehouseCutoffTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WarehouseCutoffTime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WarehouseCutoffTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime;
+
+ /**
+ * Decodes a WarehouseCutoffTime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WarehouseCutoffTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime;
+
+ /**
+ * Verifies a WarehouseCutoffTime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WarehouseCutoffTime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WarehouseCutoffTime
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime;
+
+ /**
+ * Creates a plain object from a WarehouseCutoffTime message. Also converts values to other types if specified.
+ * @param message WarehouseCutoffTime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WarehouseCutoffTime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WarehouseCutoffTime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Address. */
+ interface IAddress {
+
+ /** Address streetAddress */
+ streetAddress?: (string|null);
+
+ /** Address city */
+ city?: (string|null);
+
+ /** Address administrativeArea */
+ administrativeArea?: (string|null);
+
+ /** Address postalCode */
+ postalCode?: (string|null);
+
+ /** Address regionCode */
+ regionCode?: (string|null);
+ }
+
+ /** Represents an Address. */
+ class Address implements IAddress {
+
+ /**
+ * Constructs a new Address.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IAddress);
+
+ /** Address streetAddress. */
+ public streetAddress?: (string|null);
+
+ /** Address city. */
+ public city?: (string|null);
+
+ /** Address administrativeArea. */
+ public administrativeArea?: (string|null);
+
+ /** Address postalCode. */
+ public postalCode?: (string|null);
+
+ /** Address regionCode. */
+ public regionCode?: (string|null);
+
+ /** Address _streetAddress. */
+ public _streetAddress?: "streetAddress";
+
+ /** Address _city. */
+ public _city?: "city";
+
+ /** Address _administrativeArea. */
+ public _administrativeArea?: "administrativeArea";
+
+ /** Address _postalCode. */
+ public _postalCode?: "postalCode";
+
+ /** Address _regionCode. */
+ public _regionCode?: "regionCode";
+
+ /**
+ * Creates a new Address instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Address instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IAddress): google.shopping.merchant.accounts.v1beta.Address;
+
+ /**
+ * Encodes the specified Address message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Address.verify|verify} messages.
+ * @param message Address message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IAddress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Address message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Address.verify|verify} messages.
+ * @param message Address message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IAddress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Address message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Address
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Address;
+
+ /**
+ * Decodes an Address message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Address
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Address;
+
+ /**
+ * Verifies an Address message.
+ * @param message Plain 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 Address message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Address
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Address;
+
+ /**
+ * Creates a plain object from an Address message. Also converts values to other types if specified.
+ * @param message Address
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Address, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Address to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Address
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeliveryTime. */
+ interface IDeliveryTime {
+
+ /** DeliveryTime minTransitDays */
+ minTransitDays?: (number|null);
+
+ /** DeliveryTime maxTransitDays */
+ maxTransitDays?: (number|null);
+
+ /** DeliveryTime cutoffTime */
+ cutoffTime?: (google.shopping.merchant.accounts.v1beta.ICutoffTime|null);
+
+ /** DeliveryTime minHandlingDays */
+ minHandlingDays?: (number|null);
+
+ /** DeliveryTime maxHandlingDays */
+ maxHandlingDays?: (number|null);
+
+ /** DeliveryTime transitTimeTable */
+ transitTimeTable?: (google.shopping.merchant.accounts.v1beta.ITransitTable|null);
+
+ /** DeliveryTime handlingBusinessDayConfig */
+ handlingBusinessDayConfig?: (google.shopping.merchant.accounts.v1beta.IBusinessDayConfig|null);
+
+ /** DeliveryTime transitBusinessDayConfig */
+ transitBusinessDayConfig?: (google.shopping.merchant.accounts.v1beta.IBusinessDayConfig|null);
+
+ /** DeliveryTime warehouseBasedDeliveryTimes */
+ warehouseBasedDeliveryTimes?: (google.shopping.merchant.accounts.v1beta.IWarehouseBasedDeliveryTime[]|null);
+ }
+
+ /** Represents a DeliveryTime. */
+ class DeliveryTime implements IDeliveryTime {
+
+ /**
+ * Constructs a new DeliveryTime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IDeliveryTime);
+
+ /** DeliveryTime minTransitDays. */
+ public minTransitDays?: (number|null);
+
+ /** DeliveryTime maxTransitDays. */
+ public maxTransitDays?: (number|null);
+
+ /** DeliveryTime cutoffTime. */
+ public cutoffTime?: (google.shopping.merchant.accounts.v1beta.ICutoffTime|null);
+
+ /** DeliveryTime minHandlingDays. */
+ public minHandlingDays?: (number|null);
+
+ /** DeliveryTime maxHandlingDays. */
+ public maxHandlingDays?: (number|null);
+
+ /** DeliveryTime transitTimeTable. */
+ public transitTimeTable?: (google.shopping.merchant.accounts.v1beta.ITransitTable|null);
+
+ /** DeliveryTime handlingBusinessDayConfig. */
+ public handlingBusinessDayConfig?: (google.shopping.merchant.accounts.v1beta.IBusinessDayConfig|null);
+
+ /** DeliveryTime transitBusinessDayConfig. */
+ public transitBusinessDayConfig?: (google.shopping.merchant.accounts.v1beta.IBusinessDayConfig|null);
+
+ /** DeliveryTime warehouseBasedDeliveryTimes. */
+ public warehouseBasedDeliveryTimes: google.shopping.merchant.accounts.v1beta.IWarehouseBasedDeliveryTime[];
+
+ /** DeliveryTime _minTransitDays. */
+ public _minTransitDays?: "minTransitDays";
+
+ /** DeliveryTime _maxTransitDays. */
+ public _maxTransitDays?: "maxTransitDays";
+
+ /** DeliveryTime _cutoffTime. */
+ public _cutoffTime?: "cutoffTime";
+
+ /** DeliveryTime _minHandlingDays. */
+ public _minHandlingDays?: "minHandlingDays";
+
+ /** DeliveryTime _maxHandlingDays. */
+ public _maxHandlingDays?: "maxHandlingDays";
+
+ /** DeliveryTime _transitTimeTable. */
+ public _transitTimeTable?: "transitTimeTable";
+
+ /** DeliveryTime _handlingBusinessDayConfig. */
+ public _handlingBusinessDayConfig?: "handlingBusinessDayConfig";
+
+ /** DeliveryTime _transitBusinessDayConfig. */
+ public _transitBusinessDayConfig?: "transitBusinessDayConfig";
+
+ /**
+ * Creates a new DeliveryTime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeliveryTime instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IDeliveryTime): google.shopping.merchant.accounts.v1beta.DeliveryTime;
+
+ /**
+ * Encodes the specified DeliveryTime message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeliveryTime.verify|verify} messages.
+ * @param message DeliveryTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IDeliveryTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeliveryTime message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeliveryTime.verify|verify} messages.
+ * @param message DeliveryTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IDeliveryTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeliveryTime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeliveryTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.DeliveryTime;
+
+ /**
+ * Decodes a DeliveryTime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeliveryTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.DeliveryTime;
+
+ /**
+ * Verifies a DeliveryTime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeliveryTime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeliveryTime
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.DeliveryTime;
+
+ /**
+ * Creates a plain object from a DeliveryTime message. Also converts values to other types if specified.
+ * @param message DeliveryTime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.DeliveryTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeliveryTime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeliveryTime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CutoffTime. */
+ interface ICutoffTime {
+
+ /** CutoffTime hour */
+ hour?: (number|null);
+
+ /** CutoffTime minute */
+ minute?: (number|null);
+
+ /** CutoffTime timeZone */
+ timeZone?: (string|null);
+ }
+
+ /** Represents a CutoffTime. */
+ class CutoffTime implements ICutoffTime {
+
+ /**
+ * Constructs a new CutoffTime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ICutoffTime);
+
+ /** CutoffTime hour. */
+ public hour?: (number|null);
+
+ /** CutoffTime minute. */
+ public minute?: (number|null);
+
+ /** CutoffTime timeZone. */
+ public timeZone?: (string|null);
+
+ /** CutoffTime _hour. */
+ public _hour?: "hour";
+
+ /** CutoffTime _minute. */
+ public _minute?: "minute";
+
+ /** CutoffTime _timeZone. */
+ public _timeZone?: "timeZone";
+
+ /**
+ * Creates a new CutoffTime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CutoffTime instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ICutoffTime): google.shopping.merchant.accounts.v1beta.CutoffTime;
+
+ /**
+ * Encodes the specified CutoffTime message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CutoffTime.verify|verify} messages.
+ * @param message CutoffTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ICutoffTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CutoffTime message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CutoffTime.verify|verify} messages.
+ * @param message CutoffTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ICutoffTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CutoffTime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CutoffTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CutoffTime;
+
+ /**
+ * Decodes a CutoffTime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CutoffTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CutoffTime;
+
+ /**
+ * Verifies a CutoffTime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CutoffTime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CutoffTime
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CutoffTime;
+
+ /**
+ * Creates a plain object from a CutoffTime message. Also converts values to other types if specified.
+ * @param message CutoffTime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CutoffTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CutoffTime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CutoffTime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BusinessDayConfig. */
+ interface IBusinessDayConfig {
+
+ /** BusinessDayConfig businessDays */
+ businessDays?: (google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday[]|null);
+ }
+
+ /** Represents a BusinessDayConfig. */
+ class BusinessDayConfig implements IBusinessDayConfig {
+
+ /**
+ * Constructs a new BusinessDayConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IBusinessDayConfig);
+
+ /** BusinessDayConfig businessDays. */
+ public businessDays: google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday[];
+
+ /**
+ * Creates a new BusinessDayConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BusinessDayConfig instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IBusinessDayConfig): google.shopping.merchant.accounts.v1beta.BusinessDayConfig;
+
+ /**
+ * Encodes the specified BusinessDayConfig message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessDayConfig.verify|verify} messages.
+ * @param message BusinessDayConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IBusinessDayConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BusinessDayConfig message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessDayConfig.verify|verify} messages.
+ * @param message BusinessDayConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IBusinessDayConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BusinessDayConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BusinessDayConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.BusinessDayConfig;
+
+ /**
+ * Decodes a BusinessDayConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BusinessDayConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.BusinessDayConfig;
+
+ /**
+ * Verifies a BusinessDayConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BusinessDayConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BusinessDayConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.BusinessDayConfig;
+
+ /**
+ * Creates a plain object from a BusinessDayConfig message. Also converts values to other types if specified.
+ * @param message BusinessDayConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.BusinessDayConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BusinessDayConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BusinessDayConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BusinessDayConfig {
+
+ /** Weekday enum. */
+ enum Weekday {
+ WEEKDAY_UNSPECIFIED = 0,
+ MONDAY = 1,
+ TUESDAY = 2,
+ WEDNESDAY = 3,
+ THURSDAY = 4,
+ FRIDAY = 5,
+ SATURDAY = 6,
+ SUNDAY = 7
+ }
+ }
+
+ /** Properties of a WarehouseBasedDeliveryTime. */
+ interface IWarehouseBasedDeliveryTime {
+
+ /** WarehouseBasedDeliveryTime carrier */
+ carrier?: (string|null);
+
+ /** WarehouseBasedDeliveryTime carrierService */
+ carrierService?: (string|null);
+
+ /** WarehouseBasedDeliveryTime warehouse */
+ warehouse?: (string|null);
+ }
+
+ /** Represents a WarehouseBasedDeliveryTime. */
+ class WarehouseBasedDeliveryTime implements IWarehouseBasedDeliveryTime {
+
+ /**
+ * Constructs a new WarehouseBasedDeliveryTime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IWarehouseBasedDeliveryTime);
+
+ /** WarehouseBasedDeliveryTime carrier. */
+ public carrier?: (string|null);
+
+ /** WarehouseBasedDeliveryTime carrierService. */
+ public carrierService?: (string|null);
+
+ /** WarehouseBasedDeliveryTime warehouse. */
+ public warehouse?: (string|null);
+
+ /** WarehouseBasedDeliveryTime _carrier. */
+ public _carrier?: "carrier";
+
+ /** WarehouseBasedDeliveryTime _carrierService. */
+ public _carrierService?: "carrierService";
+
+ /** WarehouseBasedDeliveryTime _warehouse. */
+ public _warehouse?: "warehouse";
+
+ /**
+ * Creates a new WarehouseBasedDeliveryTime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WarehouseBasedDeliveryTime instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IWarehouseBasedDeliveryTime): google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime;
+
+ /**
+ * Encodes the specified WarehouseBasedDeliveryTime message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime.verify|verify} messages.
+ * @param message WarehouseBasedDeliveryTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IWarehouseBasedDeliveryTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WarehouseBasedDeliveryTime message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime.verify|verify} messages.
+ * @param message WarehouseBasedDeliveryTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IWarehouseBasedDeliveryTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WarehouseBasedDeliveryTime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WarehouseBasedDeliveryTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime;
+
+ /**
+ * Decodes a WarehouseBasedDeliveryTime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WarehouseBasedDeliveryTime
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime;
+
+ /**
+ * Verifies a WarehouseBasedDeliveryTime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WarehouseBasedDeliveryTime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WarehouseBasedDeliveryTime
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime;
+
+ /**
+ * Creates a plain object from a WarehouseBasedDeliveryTime message. Also converts values to other types if specified.
+ * @param message WarehouseBasedDeliveryTime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.WarehouseBasedDeliveryTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WarehouseBasedDeliveryTime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WarehouseBasedDeliveryTime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RateGroup. */
+ interface IRateGroup {
+
+ /** RateGroup applicableShippingLabels */
+ applicableShippingLabels?: (string[]|null);
+
+ /** RateGroup singleValue */
+ singleValue?: (google.shopping.merchant.accounts.v1beta.IValue|null);
+
+ /** RateGroup mainTable */
+ mainTable?: (google.shopping.merchant.accounts.v1beta.ITable|null);
+
+ /** RateGroup subtables */
+ subtables?: (google.shopping.merchant.accounts.v1beta.ITable[]|null);
+
+ /** RateGroup carrierRates */
+ carrierRates?: (google.shopping.merchant.accounts.v1beta.ICarrierRate[]|null);
+
+ /** RateGroup name */
+ name?: (string|null);
+ }
+
+ /** Represents a RateGroup. */
+ class RateGroup implements IRateGroup {
+
+ /**
+ * Constructs a new RateGroup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IRateGroup);
+
+ /** RateGroup applicableShippingLabels. */
+ public applicableShippingLabels: string[];
+
+ /** RateGroup singleValue. */
+ public singleValue?: (google.shopping.merchant.accounts.v1beta.IValue|null);
+
+ /** RateGroup mainTable. */
+ public mainTable?: (google.shopping.merchant.accounts.v1beta.ITable|null);
+
+ /** RateGroup subtables. */
+ public subtables: google.shopping.merchant.accounts.v1beta.ITable[];
+
+ /** RateGroup carrierRates. */
+ public carrierRates: google.shopping.merchant.accounts.v1beta.ICarrierRate[];
+
+ /** RateGroup name. */
+ public name?: (string|null);
+
+ /** RateGroup _singleValue. */
+ public _singleValue?: "singleValue";
+
+ /** RateGroup _mainTable. */
+ public _mainTable?: "mainTable";
+
+ /** RateGroup _name. */
+ public _name?: "name";
+
+ /**
+ * Creates a new RateGroup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RateGroup instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IRateGroup): google.shopping.merchant.accounts.v1beta.RateGroup;
+
+ /**
+ * Encodes the specified RateGroup message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.RateGroup.verify|verify} messages.
+ * @param message RateGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IRateGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RateGroup message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.RateGroup.verify|verify} messages.
+ * @param message RateGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IRateGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RateGroup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RateGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.RateGroup;
+
+ /**
+ * Decodes a RateGroup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RateGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.RateGroup;
+
+ /**
+ * Verifies a RateGroup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RateGroup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RateGroup
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.RateGroup;
+
+ /**
+ * Creates a plain object from a RateGroup message. Also converts values to other types if specified.
+ * @param message RateGroup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.RateGroup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RateGroup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RateGroup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Table. */
+ interface ITable {
+
+ /** Table name */
+ name?: (string|null);
+
+ /** Table rowHeaders */
+ rowHeaders?: (google.shopping.merchant.accounts.v1beta.IHeaders|null);
+
+ /** Table columnHeaders */
+ columnHeaders?: (google.shopping.merchant.accounts.v1beta.IHeaders|null);
+
+ /** Table rows */
+ rows?: (google.shopping.merchant.accounts.v1beta.IRow[]|null);
+ }
+
+ /** Represents a Table. */
+ class Table implements ITable {
+
+ /**
+ * Constructs a new Table.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ITable);
+
+ /** Table name. */
+ public name?: (string|null);
+
+ /** Table rowHeaders. */
+ public rowHeaders?: (google.shopping.merchant.accounts.v1beta.IHeaders|null);
+
+ /** Table columnHeaders. */
+ public columnHeaders?: (google.shopping.merchant.accounts.v1beta.IHeaders|null);
+
+ /** Table rows. */
+ public rows: google.shopping.merchant.accounts.v1beta.IRow[];
+
+ /** Table _name. */
+ public _name?: "name";
+
+ /** Table _rowHeaders. */
+ public _rowHeaders?: "rowHeaders";
+
+ /** Table _columnHeaders. */
+ public _columnHeaders?: "columnHeaders";
+
+ /**
+ * Creates a new Table instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Table instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ITable): google.shopping.merchant.accounts.v1beta.Table;
+
+ /**
+ * Encodes the specified Table message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Table message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Table;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Table
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Table;
+
+ /**
+ * Verifies a Table message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Table message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Table
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Table;
+
+ /**
+ * Creates a plain object from a Table message. Also converts values to other types if specified.
+ * @param message Table
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Table, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Table to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Table
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TransitTable. */
+ interface ITransitTable {
+
+ /** TransitTable postalCodeGroupNames */
+ postalCodeGroupNames?: (string[]|null);
+
+ /** TransitTable transitTimeLabels */
+ transitTimeLabels?: (string[]|null);
+
+ /** TransitTable rows */
+ rows?: (google.shopping.merchant.accounts.v1beta.TransitTable.ITransitTimeRow[]|null);
+ }
+
+ /** Represents a TransitTable. */
+ class TransitTable implements ITransitTable {
+
+ /**
+ * Constructs a new TransitTable.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ITransitTable);
+
+ /** TransitTable postalCodeGroupNames. */
+ public postalCodeGroupNames: string[];
+
+ /** TransitTable transitTimeLabels. */
+ public transitTimeLabels: string[];
+
+ /** TransitTable rows. */
+ public rows: google.shopping.merchant.accounts.v1beta.TransitTable.ITransitTimeRow[];
+
+ /**
+ * Creates a new TransitTable instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransitTable instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ITransitTable): google.shopping.merchant.accounts.v1beta.TransitTable;
+
+ /**
+ * Encodes the specified TransitTable message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TransitTable.verify|verify} messages.
+ * @param message TransitTable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ITransitTable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransitTable message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TransitTable.verify|verify} messages.
+ * @param message TransitTable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ITransitTable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransitTable message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransitTable
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.TransitTable;
+
+ /**
+ * Decodes a TransitTable message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransitTable
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.TransitTable;
+
+ /**
+ * Verifies a TransitTable message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TransitTable message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransitTable
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.TransitTable;
+
+ /**
+ * Creates a plain object from a TransitTable message. Also converts values to other types if specified.
+ * @param message TransitTable
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.TransitTable, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransitTable to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransitTable
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TransitTable {
+
+ /** Properties of a TransitTimeRow. */
+ interface ITransitTimeRow {
+
+ /** TransitTimeRow values */
+ values?: (google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.ITransitTimeValue[]|null);
+ }
+
+ /** Represents a TransitTimeRow. */
+ class TransitTimeRow implements ITransitTimeRow {
+
+ /**
+ * Constructs a new TransitTimeRow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.TransitTable.ITransitTimeRow);
+
+ /** TransitTimeRow values. */
+ public values: google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.ITransitTimeValue[];
+
+ /**
+ * Creates a new TransitTimeRow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransitTimeRow instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.TransitTable.ITransitTimeRow): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow;
+
+ /**
+ * Encodes the specified TransitTimeRow message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.verify|verify} messages.
+ * @param message TransitTimeRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.TransitTable.ITransitTimeRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransitTimeRow message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.verify|verify} messages.
+ * @param message TransitTimeRow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.TransitTable.ITransitTimeRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransitTimeRow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransitTimeRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow;
+
+ /**
+ * Decodes a TransitTimeRow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransitTimeRow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow;
+
+ /**
+ * Verifies a TransitTimeRow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TransitTimeRow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransitTimeRow
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow;
+
+ /**
+ * Creates a plain object from a TransitTimeRow message. Also converts values to other types if specified.
+ * @param message TransitTimeRow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransitTimeRow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransitTimeRow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TransitTimeRow {
+
+ /** Properties of a TransitTimeValue. */
+ interface ITransitTimeValue {
+
+ /** TransitTimeValue minTransitDays */
+ minTransitDays?: (number|null);
+
+ /** TransitTimeValue maxTransitDays */
+ maxTransitDays?: (number|null);
+ }
+
+ /** Represents a TransitTimeValue. */
+ class TransitTimeValue implements ITransitTimeValue {
+
+ /**
+ * Constructs a new TransitTimeValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.ITransitTimeValue);
+
+ /** TransitTimeValue minTransitDays. */
+ public minTransitDays?: (number|null);
+
+ /** TransitTimeValue maxTransitDays. */
+ public maxTransitDays?: (number|null);
+
+ /** TransitTimeValue _minTransitDays. */
+ public _minTransitDays?: "minTransitDays";
+
+ /** TransitTimeValue _maxTransitDays. */
+ public _maxTransitDays?: "maxTransitDays";
+
+ /**
+ * Creates a new TransitTimeValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransitTimeValue instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.ITransitTimeValue): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue;
+
+ /**
+ * Encodes the specified TransitTimeValue message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue.verify|verify} messages.
+ * @param message TransitTimeValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.ITransitTimeValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransitTimeValue message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue.verify|verify} messages.
+ * @param message TransitTimeValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.ITransitTimeValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransitTimeValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransitTimeValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue;
+
+ /**
+ * Decodes a TransitTimeValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransitTimeValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue;
+
+ /**
+ * Verifies a TransitTimeValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TransitTimeValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransitTimeValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue;
+
+ /**
+ * Creates a plain object from a TransitTimeValue message. Also converts values to other types if specified.
+ * @param message TransitTimeValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransitTimeValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransitTimeValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a MinimumOrderValueTable. */
+ interface IMinimumOrderValueTable {
+
+ /** MinimumOrderValueTable storeCodeSetWithMovs */
+ storeCodeSetWithMovs?: (google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.IStoreCodeSetWithMov[]|null);
+ }
+
+ /** Represents a MinimumOrderValueTable. */
+ class MinimumOrderValueTable implements IMinimumOrderValueTable {
+
+ /**
+ * Constructs a new MinimumOrderValueTable.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IMinimumOrderValueTable);
+
+ /** MinimumOrderValueTable storeCodeSetWithMovs. */
+ public storeCodeSetWithMovs: google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.IStoreCodeSetWithMov[];
+
+ /**
+ * Creates a new MinimumOrderValueTable instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MinimumOrderValueTable instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IMinimumOrderValueTable): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable;
+
+ /**
+ * Encodes the specified MinimumOrderValueTable message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.verify|verify} messages.
+ * @param message MinimumOrderValueTable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IMinimumOrderValueTable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MinimumOrderValueTable message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.verify|verify} messages.
+ * @param message MinimumOrderValueTable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IMinimumOrderValueTable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MinimumOrderValueTable message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MinimumOrderValueTable
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable;
+
+ /**
+ * Decodes a MinimumOrderValueTable message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MinimumOrderValueTable
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable;
+
+ /**
+ * Verifies a MinimumOrderValueTable message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MinimumOrderValueTable message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MinimumOrderValueTable
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable;
+
+ /**
+ * Creates a plain object from a MinimumOrderValueTable message. Also converts values to other types if specified.
+ * @param message MinimumOrderValueTable
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MinimumOrderValueTable to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MinimumOrderValueTable
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MinimumOrderValueTable {
+
+ /** Properties of a StoreCodeSetWithMov. */
+ interface IStoreCodeSetWithMov {
+
+ /** StoreCodeSetWithMov storeCodes */
+ storeCodes?: (string[]|null);
+
+ /** StoreCodeSetWithMov value */
+ value?: (google.shopping.type.IPrice|null);
+ }
+
+ /** Represents a StoreCodeSetWithMov. */
+ class StoreCodeSetWithMov implements IStoreCodeSetWithMov {
+
+ /**
+ * Constructs a new StoreCodeSetWithMov.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.IStoreCodeSetWithMov);
+
+ /** StoreCodeSetWithMov storeCodes. */
+ public storeCodes: string[];
+
+ /** StoreCodeSetWithMov value. */
+ public value?: (google.shopping.type.IPrice|null);
+
+ /** StoreCodeSetWithMov _value. */
+ public _value?: "value";
+
+ /**
+ * Creates a new StoreCodeSetWithMov instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StoreCodeSetWithMov instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.IStoreCodeSetWithMov): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov;
+
+ /**
+ * Encodes the specified StoreCodeSetWithMov message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov.verify|verify} messages.
+ * @param message StoreCodeSetWithMov message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.IStoreCodeSetWithMov, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StoreCodeSetWithMov message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov.verify|verify} messages.
+ * @param message StoreCodeSetWithMov message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.IStoreCodeSetWithMov, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StoreCodeSetWithMov message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StoreCodeSetWithMov
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov;
+
+ /**
+ * Decodes a StoreCodeSetWithMov message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StoreCodeSetWithMov
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov;
+
+ /**
+ * Verifies a StoreCodeSetWithMov message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StoreCodeSetWithMov message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StoreCodeSetWithMov
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov;
+
+ /**
+ * Creates a plain object from a StoreCodeSetWithMov message. Also converts values to other types if specified.
+ * @param message StoreCodeSetWithMov
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StoreCodeSetWithMov to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StoreCodeSetWithMov
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Headers. */
+ interface IHeaders {
+
+ /** Headers prices */
+ prices?: (google.shopping.type.IPrice[]|null);
+
+ /** Headers weights */
+ weights?: (google.shopping.type.IWeight[]|null);
+
+ /** Headers numberOfItems */
+ numberOfItems?: (string[]|null);
+
+ /** Headers postalCodeGroupNames */
+ postalCodeGroupNames?: (string[]|null);
+
+ /** Headers locations */
+ locations?: (google.shopping.merchant.accounts.v1beta.ILocationIdSet[]|null);
+ }
+
+ /** Represents a Headers. */
+ class Headers implements IHeaders {
+
+ /**
+ * Constructs a new Headers.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IHeaders);
+
+ /** Headers prices. */
+ public prices: google.shopping.type.IPrice[];
+
+ /** Headers weights. */
+ public weights: google.shopping.type.IWeight[];
+
+ /** Headers numberOfItems. */
+ public numberOfItems: string[];
+
+ /** Headers postalCodeGroupNames. */
+ public postalCodeGroupNames: string[];
+
+ /** Headers locations. */
+ public locations: google.shopping.merchant.accounts.v1beta.ILocationIdSet[];
+
+ /**
+ * Creates a new Headers instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Headers instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IHeaders): google.shopping.merchant.accounts.v1beta.Headers;
+
+ /**
+ * Encodes the specified Headers message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Headers.verify|verify} messages.
+ * @param message Headers message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Headers message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Headers.verify|verify} messages.
+ * @param message Headers message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Headers message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Headers
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Headers;
+
+ /**
+ * Decodes a Headers message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Headers
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Headers;
+
+ /**
+ * Verifies a Headers message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Headers message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Headers
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Headers;
+
+ /**
+ * Creates a plain object from a Headers message. Also converts values to other types if specified.
+ * @param message Headers
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Headers, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Headers to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Headers
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LocationIdSet. */
+ interface ILocationIdSet {
+
+ /** LocationIdSet locationIds */
+ locationIds?: (string[]|null);
+ }
+
+ /** Represents a LocationIdSet. */
+ class LocationIdSet implements ILocationIdSet {
+
+ /**
+ * Constructs a new LocationIdSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ILocationIdSet);
+
+ /** LocationIdSet locationIds. */
+ public locationIds: string[];
+
+ /**
+ * Creates a new LocationIdSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationIdSet instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ILocationIdSet): google.shopping.merchant.accounts.v1beta.LocationIdSet;
+
+ /**
+ * Encodes the specified LocationIdSet message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.LocationIdSet.verify|verify} messages.
+ * @param message LocationIdSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ILocationIdSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationIdSet message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.LocationIdSet.verify|verify} messages.
+ * @param message LocationIdSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ILocationIdSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationIdSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationIdSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.LocationIdSet;
+
+ /**
+ * Decodes a LocationIdSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationIdSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.LocationIdSet;
+
+ /**
+ * Verifies a LocationIdSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocationIdSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationIdSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.LocationIdSet;
+
+ /**
+ * Creates a plain object from a LocationIdSet message. Also converts values to other types if specified.
+ * @param message LocationIdSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.LocationIdSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationIdSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationIdSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Row. */
+ interface IRow {
+
+ /** Row cells */
+ cells?: (google.shopping.merchant.accounts.v1beta.IValue[]|null);
+ }
+
+ /** Represents a Row. */
+ class Row implements IRow {
+
+ /**
+ * Constructs a new Row.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IRow);
+
+ /** Row cells. */
+ public cells: google.shopping.merchant.accounts.v1beta.IValue[];
+
+ /**
+ * Creates a new Row instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Row instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IRow): google.shopping.merchant.accounts.v1beta.Row;
+
+ /**
+ * Encodes the specified Row message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Row message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Row;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Row
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Row;
+
+ /**
+ * Verifies a Row message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Row message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Row
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Row;
+
+ /**
+ * Creates a plain object from a Row message. Also converts values to other types if specified.
+ * @param message Row
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Row, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Row to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Row
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value noShipping */
+ noShipping?: (boolean|null);
+
+ /** Value flatRate */
+ flatRate?: (google.shopping.type.IPrice|null);
+
+ /** Value pricePercentage */
+ pricePercentage?: (string|null);
+
+ /** Value carrierRate */
+ carrierRate?: (string|null);
+
+ /** Value subtable */
+ subtable?: (string|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IValue);
+
+ /** Value noShipping. */
+ public noShipping?: (boolean|null);
+
+ /** Value flatRate. */
+ public flatRate?: (google.shopping.type.IPrice|null);
+
+ /** Value pricePercentage. */
+ public pricePercentage?: (string|null);
+
+ /** Value carrierRate. */
+ public carrierRate?: (string|null);
+
+ /** Value subtable. */
+ public subtable?: (string|null);
+
+ /** Value _noShipping. */
+ public _noShipping?: "noShipping";
+
+ /** Value _flatRate. */
+ public _flatRate?: "flatRate";
+
+ /** Value _pricePercentage. */
+ public _pricePercentage?: "pricePercentage";
+
+ /** Value _carrierRate. */
+ public _carrierRate?: "carrierRate";
+
+ /** Value _subtable. */
+ public _subtable?: "subtable";
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IValue): google.shopping.merchant.accounts.v1beta.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CarrierRate. */
+ interface ICarrierRate {
+
+ /** CarrierRate name */
+ name?: (string|null);
+
+ /** CarrierRate carrier */
+ carrier?: (string|null);
+
+ /** CarrierRate carrierService */
+ carrierService?: (string|null);
+
+ /** CarrierRate originPostalCode */
+ originPostalCode?: (string|null);
+
+ /** CarrierRate percentageAdjustment */
+ percentageAdjustment?: (string|null);
+
+ /** CarrierRate flatAdjustment */
+ flatAdjustment?: (google.shopping.type.IPrice|null);
+ }
+
+ /** Represents a CarrierRate. */
+ class CarrierRate implements ICarrierRate {
+
+ /**
+ * Constructs a new CarrierRate.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ICarrierRate);
+
+ /** CarrierRate name. */
+ public name?: (string|null);
+
+ /** CarrierRate carrier. */
+ public carrier?: (string|null);
+
+ /** CarrierRate carrierService. */
+ public carrierService?: (string|null);
+
+ /** CarrierRate originPostalCode. */
+ public originPostalCode?: (string|null);
+
+ /** CarrierRate percentageAdjustment. */
+ public percentageAdjustment?: (string|null);
+
+ /** CarrierRate flatAdjustment. */
+ public flatAdjustment?: (google.shopping.type.IPrice|null);
+
+ /** CarrierRate _name. */
+ public _name?: "name";
+
+ /** CarrierRate _carrier. */
+ public _carrier?: "carrier";
+
+ /** CarrierRate _carrierService. */
+ public _carrierService?: "carrierService";
+
+ /** CarrierRate _originPostalCode. */
+ public _originPostalCode?: "originPostalCode";
+
+ /** CarrierRate _percentageAdjustment. */
+ public _percentageAdjustment?: "percentageAdjustment";
+
+ /** CarrierRate _flatAdjustment. */
+ public _flatAdjustment?: "flatAdjustment";
+
+ /**
+ * Creates a new CarrierRate instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CarrierRate instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ICarrierRate): google.shopping.merchant.accounts.v1beta.CarrierRate;
+
+ /**
+ * Encodes the specified CarrierRate message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CarrierRate.verify|verify} messages.
+ * @param message CarrierRate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ICarrierRate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CarrierRate message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CarrierRate.verify|verify} messages.
+ * @param message CarrierRate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ICarrierRate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CarrierRate message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CarrierRate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.CarrierRate;
+
+ /**
+ * Decodes a CarrierRate message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CarrierRate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.CarrierRate;
+
+ /**
+ * Verifies a CarrierRate message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CarrierRate message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CarrierRate
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.CarrierRate;
+
+ /**
+ * Creates a plain object from a CarrierRate message. Also converts values to other types if specified.
+ * @param message CarrierRate
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.CarrierRate, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CarrierRate to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CarrierRate
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetShippingSettingsRequest. */
+ interface IGetShippingSettingsRequest {
+
+ /** GetShippingSettingsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetShippingSettingsRequest. */
+ class GetShippingSettingsRequest implements IGetShippingSettingsRequest {
+
+ /**
+ * Constructs a new GetShippingSettingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest);
+
+ /** GetShippingSettingsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetShippingSettingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetShippingSettingsRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest): google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest;
+
+ /**
+ * Encodes the specified GetShippingSettingsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest.verify|verify} messages.
+ * @param message GetShippingSettingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetShippingSettingsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest.verify|verify} messages.
+ * @param message GetShippingSettingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetShippingSettingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetShippingSettingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest;
+
+ /**
+ * Decodes a GetShippingSettingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetShippingSettingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest;
+
+ /**
+ * Verifies a GetShippingSettingsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetShippingSettingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetShippingSettingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest;
+
+ /**
+ * Creates a plain object from a GetShippingSettingsRequest message. Also converts values to other types if specified.
+ * @param message GetShippingSettingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetShippingSettingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetShippingSettingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InsertShippingSettingsRequest. */
+ interface IInsertShippingSettingsRequest {
+
+ /** InsertShippingSettingsRequest parent */
+ parent?: (string|null);
+
+ /** InsertShippingSettingsRequest shippingSetting */
+ shippingSetting?: (google.shopping.merchant.accounts.v1beta.IShippingSettings|null);
+ }
+
+ /** Represents an InsertShippingSettingsRequest. */
+ class InsertShippingSettingsRequest implements IInsertShippingSettingsRequest {
+
+ /**
+ * Constructs a new InsertShippingSettingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest);
+
+ /** InsertShippingSettingsRequest parent. */
+ public parent: string;
+
+ /** InsertShippingSettingsRequest shippingSetting. */
+ public shippingSetting?: (google.shopping.merchant.accounts.v1beta.IShippingSettings|null);
+
+ /**
+ * Creates a new InsertShippingSettingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InsertShippingSettingsRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest): google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest;
+
+ /**
+ * Encodes the specified InsertShippingSettingsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest.verify|verify} messages.
+ * @param message InsertShippingSettingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InsertShippingSettingsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest.verify|verify} messages.
+ * @param message InsertShippingSettingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InsertShippingSettingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InsertShippingSettingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest;
+
+ /**
+ * Decodes an InsertShippingSettingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InsertShippingSettingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest;
+
+ /**
+ * Verifies an InsertShippingSettingsRequest message.
+ * @param message Plain 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 InsertShippingSettingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InsertShippingSettingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest;
+
+ /**
+ * Creates a plain object from an InsertShippingSettingsRequest message. Also converts values to other types if specified.
+ * @param message InsertShippingSettingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InsertShippingSettingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InsertShippingSettingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a TermsOfServiceService */
+ class TermsOfServiceService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new TermsOfServiceService 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 TermsOfServiceService 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): TermsOfServiceService;
+
+ /**
+ * Calls GetTermsOfService.
+ * @param request GetTermsOfServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TermsOfService
+ */
+ public getTermsOfService(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.GetTermsOfServiceCallback): void;
+
+ /**
+ * Calls GetTermsOfService.
+ * @param request GetTermsOfServiceRequest message or plain object
+ * @returns Promise
+ */
+ public getTermsOfService(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest): Promise;
+
+ /**
+ * Calls RetrieveLatestTermsOfService.
+ * @param request RetrieveLatestTermsOfServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TermsOfService
+ */
+ public retrieveLatestTermsOfService(request: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.RetrieveLatestTermsOfServiceCallback): void;
+
+ /**
+ * Calls RetrieveLatestTermsOfService.
+ * @param request RetrieveLatestTermsOfServiceRequest message or plain object
+ * @returns Promise
+ */
+ public retrieveLatestTermsOfService(request: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest): Promise;
+
+ /**
+ * Calls AcceptTermsOfService.
+ * @param request AcceptTermsOfServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public acceptTermsOfService(request: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.AcceptTermsOfServiceCallback): void;
+
+ /**
+ * Calls AcceptTermsOfService.
+ * @param request AcceptTermsOfServiceRequest message or plain object
+ * @returns Promise
+ */
+ public acceptTermsOfService(request: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest): Promise;
+ }
+
+ namespace TermsOfServiceService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.TermsOfServiceService|getTermsOfService}.
+ * @param error Error, if any
+ * @param [response] TermsOfService
+ */
+ type GetTermsOfServiceCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.TermsOfService) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.TermsOfServiceService|retrieveLatestTermsOfService}.
+ * @param error Error, if any
+ * @param [response] TermsOfService
+ */
+ type RetrieveLatestTermsOfServiceCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.TermsOfService) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.TermsOfServiceService|acceptTermsOfService}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type AcceptTermsOfServiceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ }
+
+ /** Properties of a TermsOfService. */
+ interface ITermsOfService {
+
+ /** TermsOfService name */
+ name?: (string|null);
+
+ /** TermsOfService regionCode */
+ regionCode?: (string|null);
+
+ /** TermsOfService kind */
+ kind?: (google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|keyof typeof google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|null);
+
+ /** TermsOfService fileUri */
+ fileUri?: (string|null);
+
+ /** TermsOfService external */
+ external?: (boolean|null);
+ }
+
+ /** Represents a TermsOfService. */
+ class TermsOfService implements ITermsOfService {
+
+ /**
+ * Constructs a new TermsOfService.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ITermsOfService);
+
+ /** TermsOfService name. */
+ public name: string;
+
+ /** TermsOfService regionCode. */
+ public regionCode: string;
+
+ /** TermsOfService kind. */
+ public kind: (google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|keyof typeof google.shopping.merchant.accounts.v1beta.TermsOfServiceKind);
+
+ /** TermsOfService fileUri. */
+ public fileUri?: (string|null);
+
+ /** TermsOfService external. */
+ public external: boolean;
+
+ /** TermsOfService _fileUri. */
+ public _fileUri?: "fileUri";
+
+ /**
+ * Creates a new TermsOfService instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TermsOfService instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ITermsOfService): google.shopping.merchant.accounts.v1beta.TermsOfService;
+
+ /**
+ * Encodes the specified TermsOfService message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TermsOfService.verify|verify} messages.
+ * @param message TermsOfService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ITermsOfService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TermsOfService message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TermsOfService.verify|verify} messages.
+ * @param message TermsOfService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ITermsOfService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TermsOfService message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TermsOfService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.TermsOfService;
+
+ /**
+ * Decodes a TermsOfService message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TermsOfService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.TermsOfService;
+
+ /**
+ * Verifies a TermsOfService message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TermsOfService message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TermsOfService
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.TermsOfService;
+
+ /**
+ * Creates a plain object from a TermsOfService message. Also converts values to other types if specified.
+ * @param message TermsOfService
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.TermsOfService, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TermsOfService to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TermsOfService
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetTermsOfServiceRequest. */
+ interface IGetTermsOfServiceRequest {
+
+ /** GetTermsOfServiceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetTermsOfServiceRequest. */
+ class GetTermsOfServiceRequest implements IGetTermsOfServiceRequest {
+
+ /**
+ * Constructs a new GetTermsOfServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest);
+
+ /** GetTermsOfServiceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetTermsOfServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetTermsOfServiceRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest;
+
+ /**
+ * Encodes the specified GetTermsOfServiceRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest.verify|verify} messages.
+ * @param message GetTermsOfServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetTermsOfServiceRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest.verify|verify} messages.
+ * @param message GetTermsOfServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetTermsOfServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetTermsOfServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest;
+
+ /**
+ * Decodes a GetTermsOfServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetTermsOfServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest;
+
+ /**
+ * Verifies a GetTermsOfServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetTermsOfServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetTermsOfServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest;
+
+ /**
+ * Creates a plain object from a GetTermsOfServiceRequest message. Also converts values to other types if specified.
+ * @param message GetTermsOfServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetTermsOfServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetTermsOfServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RetrieveLatestTermsOfServiceRequest. */
+ interface IRetrieveLatestTermsOfServiceRequest {
+
+ /** RetrieveLatestTermsOfServiceRequest regionCode */
+ regionCode?: (string|null);
+
+ /** RetrieveLatestTermsOfServiceRequest kind */
+ kind?: (google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|keyof typeof google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|null);
+ }
+
+ /** Represents a RetrieveLatestTermsOfServiceRequest. */
+ class RetrieveLatestTermsOfServiceRequest implements IRetrieveLatestTermsOfServiceRequest {
+
+ /**
+ * Constructs a new RetrieveLatestTermsOfServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest);
+
+ /** RetrieveLatestTermsOfServiceRequest regionCode. */
+ public regionCode: string;
+
+ /** RetrieveLatestTermsOfServiceRequest kind. */
+ public kind: (google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|keyof typeof google.shopping.merchant.accounts.v1beta.TermsOfServiceKind);
+
+ /**
+ * Creates a new RetrieveLatestTermsOfServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RetrieveLatestTermsOfServiceRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest): google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest;
+
+ /**
+ * Encodes the specified RetrieveLatestTermsOfServiceRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest.verify|verify} messages.
+ * @param message RetrieveLatestTermsOfServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RetrieveLatestTermsOfServiceRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest.verify|verify} messages.
+ * @param message RetrieveLatestTermsOfServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RetrieveLatestTermsOfServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RetrieveLatestTermsOfServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest;
+
+ /**
+ * Decodes a RetrieveLatestTermsOfServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RetrieveLatestTermsOfServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest;
+
+ /**
+ * Verifies a RetrieveLatestTermsOfServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RetrieveLatestTermsOfServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RetrieveLatestTermsOfServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest;
+
+ /**
+ * Creates a plain object from a RetrieveLatestTermsOfServiceRequest message. Also converts values to other types if specified.
+ * @param message RetrieveLatestTermsOfServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RetrieveLatestTermsOfServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RetrieveLatestTermsOfServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AcceptTermsOfServiceRequest. */
+ interface IAcceptTermsOfServiceRequest {
+
+ /** AcceptTermsOfServiceRequest name */
+ name?: (string|null);
+
+ /** AcceptTermsOfServiceRequest account */
+ account?: (string|null);
+
+ /** AcceptTermsOfServiceRequest regionCode */
+ regionCode?: (string|null);
+ }
+
+ /** Represents an AcceptTermsOfServiceRequest. */
+ class AcceptTermsOfServiceRequest implements IAcceptTermsOfServiceRequest {
+
+ /**
+ * Constructs a new AcceptTermsOfServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest);
+
+ /** AcceptTermsOfServiceRequest name. */
+ public name: string;
+
+ /** AcceptTermsOfServiceRequest account. */
+ public account: string;
+
+ /** AcceptTermsOfServiceRequest regionCode. */
+ public regionCode: string;
+
+ /**
+ * Creates a new AcceptTermsOfServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AcceptTermsOfServiceRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest): google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest;
+
+ /**
+ * Encodes the specified AcceptTermsOfServiceRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest.verify|verify} messages.
+ * @param message AcceptTermsOfServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AcceptTermsOfServiceRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest.verify|verify} messages.
+ * @param message AcceptTermsOfServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AcceptTermsOfServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AcceptTermsOfServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest;
+
+ /**
+ * Decodes an AcceptTermsOfServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AcceptTermsOfServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest;
+
+ /**
+ * Verifies an AcceptTermsOfServiceRequest message.
+ * @param message Plain 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 AcceptTermsOfServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AcceptTermsOfServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest;
+
+ /**
+ * Creates a plain object from an AcceptTermsOfServiceRequest message. Also converts values to other types if specified.
+ * @param message AcceptTermsOfServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AcceptTermsOfServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AcceptTermsOfServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** TermsOfServiceKind enum. */
+ enum TermsOfServiceKind {
+ TERMS_OF_SERVICE_KIND_UNSPECIFIED = 0,
+ MERCHANT_CENTER = 1
+ }
+
+ /** Represents a TermsOfServiceAgreementStateService */
+ class TermsOfServiceAgreementStateService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new TermsOfServiceAgreementStateService 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 TermsOfServiceAgreementStateService 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): TermsOfServiceAgreementStateService;
+
+ /**
+ * Calls GetTermsOfServiceAgreementState.
+ * @param request GetTermsOfServiceAgreementStateRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TermsOfServiceAgreementState
+ */
+ public getTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.GetTermsOfServiceAgreementStateCallback): void;
+
+ /**
+ * Calls GetTermsOfServiceAgreementState.
+ * @param request GetTermsOfServiceAgreementStateRequest message or plain object
+ * @returns Promise
+ */
+ public getTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest): Promise;
+
+ /**
+ * Calls RetrieveForApplicationTermsOfServiceAgreementState.
+ * @param request RetrieveForApplicationTermsOfServiceAgreementStateRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TermsOfServiceAgreementState
+ */
+ public retrieveForApplicationTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.RetrieveForApplicationTermsOfServiceAgreementStateCallback): void;
+
+ /**
+ * Calls RetrieveForApplicationTermsOfServiceAgreementState.
+ * @param request RetrieveForApplicationTermsOfServiceAgreementStateRequest message or plain object
+ * @returns Promise
+ */
+ public retrieveForApplicationTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest): Promise;
+ }
+
+ namespace TermsOfServiceAgreementStateService {
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService|getTermsOfServiceAgreementState}.
+ * @param error Error, if any
+ * @param [response] TermsOfServiceAgreementState
+ */
+ type GetTermsOfServiceAgreementStateCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState) => void;
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService|retrieveForApplicationTermsOfServiceAgreementState}.
+ * @param error Error, if any
+ * @param [response] TermsOfServiceAgreementState
+ */
+ type RetrieveForApplicationTermsOfServiceAgreementStateCallback = (error: (Error|null), response?: google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState) => void;
+ }
+
+ /** Properties of a TermsOfServiceAgreementState. */
+ interface ITermsOfServiceAgreementState {
+
+ /** TermsOfServiceAgreementState name */
+ name?: (string|null);
+
+ /** TermsOfServiceAgreementState regionCode */
+ regionCode?: (string|null);
+
+ /** TermsOfServiceAgreementState termsOfServiceKind */
+ termsOfServiceKind?: (google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|keyof typeof google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|null);
+
+ /** TermsOfServiceAgreementState accepted */
+ accepted?: (google.shopping.merchant.accounts.v1beta.IAccepted|null);
+
+ /** TermsOfServiceAgreementState required */
+ required?: (google.shopping.merchant.accounts.v1beta.IRequired|null);
+ }
+
+ /** Represents a TermsOfServiceAgreementState. */
+ class TermsOfServiceAgreementState implements ITermsOfServiceAgreementState {
+
+ /**
+ * Constructs a new TermsOfServiceAgreementState.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.ITermsOfServiceAgreementState);
+
+ /** TermsOfServiceAgreementState name. */
+ public name: string;
+
+ /** TermsOfServiceAgreementState regionCode. */
+ public regionCode: string;
+
+ /** TermsOfServiceAgreementState termsOfServiceKind. */
+ public termsOfServiceKind: (google.shopping.merchant.accounts.v1beta.TermsOfServiceKind|keyof typeof google.shopping.merchant.accounts.v1beta.TermsOfServiceKind);
+
+ /** TermsOfServiceAgreementState accepted. */
+ public accepted?: (google.shopping.merchant.accounts.v1beta.IAccepted|null);
+
+ /** TermsOfServiceAgreementState required. */
+ public required?: (google.shopping.merchant.accounts.v1beta.IRequired|null);
+
+ /** TermsOfServiceAgreementState _accepted. */
+ public _accepted?: "accepted";
+
+ /** TermsOfServiceAgreementState _required. */
+ public _required?: "required";
+
+ /**
+ * Creates a new TermsOfServiceAgreementState instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TermsOfServiceAgreementState instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.ITermsOfServiceAgreementState): google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState;
+
+ /**
+ * Encodes the specified TermsOfServiceAgreementState message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState.verify|verify} messages.
+ * @param message TermsOfServiceAgreementState message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.ITermsOfServiceAgreementState, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TermsOfServiceAgreementState message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState.verify|verify} messages.
+ * @param message TermsOfServiceAgreementState message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.ITermsOfServiceAgreementState, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TermsOfServiceAgreementState message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TermsOfServiceAgreementState
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState;
+
+ /**
+ * Decodes a TermsOfServiceAgreementState message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TermsOfServiceAgreementState
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState;
+
+ /**
+ * Verifies a TermsOfServiceAgreementState message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TermsOfServiceAgreementState message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TermsOfServiceAgreementState
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState;
+
+ /**
+ * Creates a plain object from a TermsOfServiceAgreementState message. Also converts values to other types if specified.
+ * @param message TermsOfServiceAgreementState
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TermsOfServiceAgreementState to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TermsOfServiceAgreementState
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Accepted. */
+ interface IAccepted {
+
+ /** Accepted termsOfService */
+ termsOfService?: (string|null);
+
+ /** Accepted acceptedBy */
+ acceptedBy?: (string|null);
+
+ /** Accepted validUntil */
+ validUntil?: (google.type.IDate|null);
+ }
+
+ /** Represents an Accepted. */
+ class Accepted implements IAccepted {
+
+ /**
+ * Constructs a new Accepted.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IAccepted);
+
+ /** Accepted termsOfService. */
+ public termsOfService: string;
+
+ /** Accepted acceptedBy. */
+ public acceptedBy: string;
+
+ /** Accepted validUntil. */
+ public validUntil?: (google.type.IDate|null);
+
+ /** Accepted _validUntil. */
+ public _validUntil?: "validUntil";
+
+ /**
+ * Creates a new Accepted instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Accepted instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IAccepted): google.shopping.merchant.accounts.v1beta.Accepted;
+
+ /**
+ * Encodes the specified Accepted message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Accepted.verify|verify} messages.
+ * @param message Accepted message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Accepted message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Accepted.verify|verify} messages.
+ * @param message Accepted message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Accepted message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Accepted
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Accepted;
+
+ /**
+ * Decodes an Accepted message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Accepted
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Accepted;
+
+ /**
+ * Verifies an Accepted message.
+ * @param message Plain 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 Accepted message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Accepted
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Accepted;
+
+ /**
+ * Creates a plain object from an Accepted message. Also converts values to other types if specified.
+ * @param message Accepted
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Accepted, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Accepted to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Accepted
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Required. */
+ interface IRequired {
+
+ /** Required termsOfService */
+ termsOfService?: (string|null);
+
+ /** Required tosFileUri */
+ tosFileUri?: (string|null);
+ }
+
+ /** Represents a Required. */
+ class Required implements IRequired {
+
+ /**
+ * Constructs a new Required.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IRequired);
+
+ /** Required termsOfService. */
+ public termsOfService: string;
+
+ /** Required tosFileUri. */
+ public tosFileUri: string;
+
+ /**
+ * Creates a new Required instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Required instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IRequired): google.shopping.merchant.accounts.v1beta.Required;
+
+ /**
+ * Encodes the specified Required message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Required.verify|verify} messages.
+ * @param message Required message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IRequired, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Required message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Required.verify|verify} messages.
+ * @param message Required message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IRequired, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Required message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Required
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.Required;
+
+ /**
+ * Decodes a Required message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Required
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Required;
+
+ /**
+ * Verifies a Required message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Required message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Required
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.Required;
+
+ /**
+ * Creates a plain object from a Required message. Also converts values to other types if specified.
+ * @param message Required
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.Required, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Required to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Required
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetTermsOfServiceAgreementStateRequest. */
+ interface IGetTermsOfServiceAgreementStateRequest {
+
+ /** GetTermsOfServiceAgreementStateRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetTermsOfServiceAgreementStateRequest. */
+ class GetTermsOfServiceAgreementStateRequest implements IGetTermsOfServiceAgreementStateRequest {
+
+ /**
+ * Constructs a new GetTermsOfServiceAgreementStateRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest);
+
+ /** GetTermsOfServiceAgreementStateRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetTermsOfServiceAgreementStateRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetTermsOfServiceAgreementStateRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Encodes the specified GetTermsOfServiceAgreementStateRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest.verify|verify} messages.
+ * @param message GetTermsOfServiceAgreementStateRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetTermsOfServiceAgreementStateRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest.verify|verify} messages.
+ * @param message GetTermsOfServiceAgreementStateRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetTermsOfServiceAgreementStateRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetTermsOfServiceAgreementStateRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Decodes a GetTermsOfServiceAgreementStateRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetTermsOfServiceAgreementStateRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Verifies a GetTermsOfServiceAgreementStateRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetTermsOfServiceAgreementStateRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetTermsOfServiceAgreementStateRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Creates a plain object from a GetTermsOfServiceAgreementStateRequest message. Also converts values to other types if specified.
+ * @param message GetTermsOfServiceAgreementStateRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetTermsOfServiceAgreementStateRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetTermsOfServiceAgreementStateRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RetrieveForApplicationTermsOfServiceAgreementStateRequest. */
+ interface IRetrieveForApplicationTermsOfServiceAgreementStateRequest {
+
+ /** RetrieveForApplicationTermsOfServiceAgreementStateRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a RetrieveForApplicationTermsOfServiceAgreementStateRequest. */
+ class RetrieveForApplicationTermsOfServiceAgreementStateRequest implements IRetrieveForApplicationTermsOfServiceAgreementStateRequest {
+
+ /**
+ * Constructs a new RetrieveForApplicationTermsOfServiceAgreementStateRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest);
+
+ /** RetrieveForApplicationTermsOfServiceAgreementStateRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new RetrieveForApplicationTermsOfServiceAgreementStateRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RetrieveForApplicationTermsOfServiceAgreementStateRequest instance
+ */
+ public static create(properties?: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest): google.shopping.merchant.accounts.v1beta.RetrieveForApplicationTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Encodes the specified RetrieveForApplicationTermsOfServiceAgreementStateRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.RetrieveForApplicationTermsOfServiceAgreementStateRequest.verify|verify} messages.
+ * @param message RetrieveForApplicationTermsOfServiceAgreementStateRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RetrieveForApplicationTermsOfServiceAgreementStateRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.RetrieveForApplicationTermsOfServiceAgreementStateRequest.verify|verify} messages.
+ * @param message RetrieveForApplicationTermsOfServiceAgreementStateRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RetrieveForApplicationTermsOfServiceAgreementStateRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RetrieveForApplicationTermsOfServiceAgreementStateRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.RetrieveForApplicationTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Decodes a RetrieveForApplicationTermsOfServiceAgreementStateRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RetrieveForApplicationTermsOfServiceAgreementStateRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.RetrieveForApplicationTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Verifies a RetrieveForApplicationTermsOfServiceAgreementStateRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RetrieveForApplicationTermsOfServiceAgreementStateRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RetrieveForApplicationTermsOfServiceAgreementStateRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.RetrieveForApplicationTermsOfServiceAgreementStateRequest;
+
+ /**
+ * Creates a plain object from a RetrieveForApplicationTermsOfServiceAgreementStateRequest message. Also converts values to other types if specified.
+ * @param message RetrieveForApplicationTermsOfServiceAgreementStateRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.merchant.accounts.v1beta.RetrieveForApplicationTermsOfServiceAgreementStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RetrieveForApplicationTermsOfServiceAgreementStateRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RetrieveForApplicationTermsOfServiceAgreementStateRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** Properties of a Weight. */
+ interface IWeight {
+
+ /** Weight amountMicros */
+ amountMicros?: (number|Long|string|null);
+
+ /** Weight unit */
+ unit?: (google.shopping.type.Weight.WeightUnit|keyof typeof google.shopping.type.Weight.WeightUnit|null);
+ }
+
+ /** Represents a Weight. */
+ class Weight implements IWeight {
+
+ /**
+ * Constructs a new Weight.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.type.IWeight);
+
+ /** Weight amountMicros. */
+ public amountMicros?: (number|Long|string|null);
+
+ /** Weight unit. */
+ public unit: (google.shopping.type.Weight.WeightUnit|keyof typeof google.shopping.type.Weight.WeightUnit);
+
+ /** Weight _amountMicros. */
+ public _amountMicros?: "amountMicros";
+
+ /**
+ * Creates a new Weight instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Weight instance
+ */
+ public static create(properties?: google.shopping.type.IWeight): google.shopping.type.Weight;
+
+ /**
+ * Encodes the specified Weight message. Does not implicitly {@link google.shopping.type.Weight.verify|verify} messages.
+ * @param message Weight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.type.IWeight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Weight message, length delimited. Does not implicitly {@link google.shopping.type.Weight.verify|verify} messages.
+ * @param message Weight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.type.IWeight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Weight message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Weight
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.type.Weight;
+
+ /**
+ * Decodes a Weight message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Weight
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.type.Weight;
+
+ /**
+ * Verifies a Weight message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Weight message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Weight
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.type.Weight;
+
+ /**
+ * Creates a plain object from a Weight message. Also converts values to other types if specified.
+ * @param message Weight
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.type.Weight, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Weight to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Weight
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Weight {
+
+ /** WeightUnit enum. */
+ enum WeightUnit {
+ WEIGHT_UNIT_UNSPECIFIED = 0,
+ POUND = 1,
+ KILOGRAM = 2
+ }
+ }
+
+ /** Properties of a Price. */
+ interface IPrice {
+
+ /** Price amountMicros */
+ amountMicros?: (number|Long|string|null);
+
+ /** Price currencyCode */
+ currencyCode?: (string|null);
+ }
+
+ /** Represents a Price. */
+ class Price implements IPrice {
+
+ /**
+ * Constructs a new Price.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.type.IPrice);
+
+ /** Price amountMicros. */
+ public amountMicros?: (number|Long|string|null);
+
+ /** Price currencyCode. */
+ public currencyCode?: (string|null);
+
+ /** Price _amountMicros. */
+ public _amountMicros?: "amountMicros";
+
+ /** Price _currencyCode. */
+ public _currencyCode?: "currencyCode";
+
+ /**
+ * Creates a new Price instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Price instance
+ */
+ public static create(properties?: google.shopping.type.IPrice): google.shopping.type.Price;
+
+ /**
+ * Encodes the specified Price message. Does not implicitly {@link google.shopping.type.Price.verify|verify} messages.
+ * @param message Price message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.type.IPrice, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Price message, length delimited. Does not implicitly {@link google.shopping.type.Price.verify|verify} messages.
+ * @param message Price message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.type.IPrice, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Price message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Price
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.type.Price;
+
+ /**
+ * Decodes a Price message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Price
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.type.Price;
+
+ /**
+ * Verifies a Price message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Price message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Price
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.type.Price;
+
+ /**
+ * Creates a plain object from a Price message. Also converts values to other types if specified.
+ * @param message Price
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.type.Price, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Price to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Price
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomAttribute. */
+ interface ICustomAttribute {
+
+ /** CustomAttribute name */
+ name?: (string|null);
+
+ /** CustomAttribute value */
+ value?: (string|null);
+
+ /** CustomAttribute groupValues */
+ groupValues?: (google.shopping.type.ICustomAttribute[]|null);
+ }
+
+ /** Represents a CustomAttribute. */
+ class CustomAttribute implements ICustomAttribute {
+
+ /**
+ * Constructs a new CustomAttribute.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.type.ICustomAttribute);
+
+ /** CustomAttribute name. */
+ public name?: (string|null);
+
+ /** CustomAttribute value. */
+ public value?: (string|null);
+
+ /** CustomAttribute groupValues. */
+ public groupValues: google.shopping.type.ICustomAttribute[];
+
+ /** CustomAttribute _name. */
+ public _name?: "name";
+
+ /** CustomAttribute _value. */
+ public _value?: "value";
+
+ /**
+ * Creates a new CustomAttribute instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomAttribute instance
+ */
+ public static create(properties?: google.shopping.type.ICustomAttribute): google.shopping.type.CustomAttribute;
+
+ /**
+ * Encodes the specified CustomAttribute message. Does not implicitly {@link google.shopping.type.CustomAttribute.verify|verify} messages.
+ * @param message CustomAttribute message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.type.ICustomAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomAttribute message, length delimited. Does not implicitly {@link google.shopping.type.CustomAttribute.verify|verify} messages.
+ * @param message CustomAttribute message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.type.ICustomAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomAttribute message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.type.CustomAttribute;
+
+ /**
+ * Decodes a CustomAttribute message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.type.CustomAttribute;
+
+ /**
+ * Verifies a CustomAttribute message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomAttribute message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomAttribute
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.type.CustomAttribute;
+
+ /**
+ * Creates a plain object from a CustomAttribute message. Also converts values to other types if specified.
+ * @param message CustomAttribute
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.type.CustomAttribute, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomAttribute to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomAttribute
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Destination. */
+ interface IDestination {
+ }
+
+ /** Represents a Destination. */
+ class Destination implements IDestination {
+
+ /**
+ * Constructs a new Destination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.type.IDestination);
+
+ /**
+ * Creates a new Destination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Destination instance
+ */
+ public static create(properties?: google.shopping.type.IDestination): google.shopping.type.Destination;
+
+ /**
+ * Encodes the specified Destination message. Does not implicitly {@link google.shopping.type.Destination.verify|verify} messages.
+ * @param message Destination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.type.IDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Destination message, length delimited. Does not implicitly {@link google.shopping.type.Destination.verify|verify} messages.
+ * @param message Destination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.type.IDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Destination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Destination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.type.Destination;
+
+ /**
+ * Decodes a Destination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Destination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.type.Destination;
+
+ /**
+ * Verifies a Destination message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Destination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Destination
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.type.Destination;
+
+ /**
+ * Creates a plain object from a Destination message. Also converts values to other types if specified.
+ * @param message Destination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.type.Destination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Destination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Destination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Destination {
+
+ /** DestinationEnum enum. */
+ enum DestinationEnum {
+ DESTINATION_ENUM_UNSPECIFIED = 0,
+ SHOPPING_ADS = 1,
+ DISPLAY_ADS = 2,
+ LOCAL_INVENTORY_ADS = 3,
+ FREE_LISTINGS = 4,
+ FREE_LOCAL_LISTINGS = 5,
+ YOUTUBE_SHOPPING = 6
+ }
+ }
+
+ /** Properties of a ReportingContext. */
+ interface IReportingContext {
+ }
+
+ /** Represents a ReportingContext. */
+ class ReportingContext implements IReportingContext {
+
+ /**
+ * Constructs a new ReportingContext.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.type.IReportingContext);
+
+ /**
+ * Creates a new ReportingContext instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReportingContext instance
+ */
+ public static create(properties?: google.shopping.type.IReportingContext): google.shopping.type.ReportingContext;
+
+ /**
+ * Encodes the specified ReportingContext message. Does not implicitly {@link google.shopping.type.ReportingContext.verify|verify} messages.
+ * @param message ReportingContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.type.IReportingContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReportingContext message, length delimited. Does not implicitly {@link google.shopping.type.ReportingContext.verify|verify} messages.
+ * @param message ReportingContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.type.IReportingContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReportingContext message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReportingContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.type.ReportingContext;
+
+ /**
+ * Decodes a ReportingContext message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReportingContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.type.ReportingContext;
+
+ /**
+ * Verifies a ReportingContext message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReportingContext message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReportingContext
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.type.ReportingContext;
+
+ /**
+ * Creates a plain object from a ReportingContext message. Also converts values to other types if specified.
+ * @param message ReportingContext
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.type.ReportingContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReportingContext to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReportingContext
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ReportingContext {
+
+ /** ReportingContextEnum enum. */
+ enum ReportingContextEnum {
+ REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0,
+ SHOPPING_ADS = 1,
+ DISCOVERY_ADS = 2,
+ DEMAND_GEN_ADS = 13,
+ DEMAND_GEN_ADS_DISCOVER_SURFACE = 14,
+ VIDEO_ADS = 3,
+ DISPLAY_ADS = 4,
+ LOCAL_INVENTORY_ADS = 5,
+ VEHICLE_INVENTORY_ADS = 6,
+ FREE_LISTINGS = 7,
+ FREE_LOCAL_LISTINGS = 8,
+ FREE_LOCAL_VEHICLE_LISTINGS = 9,
+ YOUTUBE_SHOPPING = 10,
+ CLOUD_RETAIL = 11,
+ LOCAL_CLOUD_RETAIL = 12
+ }
+ }
+
+ /** Properties of a Channel. */
+ interface IChannel {
+ }
+
+ /** Represents a Channel. */
+ class Channel implements IChannel {
+
+ /**
+ * Constructs a new Channel.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.shopping.type.IChannel);
+
+ /**
+ * Creates a new Channel instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Channel instance
+ */
+ public static create(properties?: google.shopping.type.IChannel): google.shopping.type.Channel;
+
+ /**
+ * Encodes the specified Channel message. Does not implicitly {@link google.shopping.type.Channel.verify|verify} messages.
+ * @param message Channel message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.shopping.type.IChannel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Channel message, length delimited. Does not implicitly {@link google.shopping.type.Channel.verify|verify} messages.
+ * @param message Channel message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.shopping.type.IChannel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Channel message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Channel
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.type.Channel;
+
+ /**
+ * Decodes a Channel message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Channel
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.type.Channel;
+
+ /**
+ * Verifies a Channel message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Channel message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Channel
+ */
+ public static fromObject(object: { [k: string]: any }): google.shopping.type.Channel;
+
+ /**
+ * Creates a plain object from a Channel message. Also converts values to other types if specified.
+ * @param message Channel
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.shopping.type.Channel, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Channel to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Channel
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Channel {
+
+ /** ChannelEnum enum. */
+ enum ChannelEnum {
+ CHANNEL_ENUM_UNSPECIFIED = 0,
+ ONLINE = 1,
+ LOCAL = 2
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
+
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
+
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
+
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
+
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
+
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7,
+ IDENTIFIER = 8
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification. */
+ public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExtensionRangeOptions {
+
+ /** Properties of a Declaration. */
+ interface IDeclaration {
+
+ /** Declaration number */
+ number?: (number|null);
+
+ /** Declaration fullName */
+ fullName?: (string|null);
+
+ /** Declaration type */
+ type?: (string|null);
+
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
+ }
+
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
+
+ /**
+ * Constructs a new Declaration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
+
+ /** Declaration number. */
+ public number: number;
+
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
+
+ /**
+ * Creates a new Declaration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Declaration instance
+ */
+ public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Verifies a Declaration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Declaration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * @param message Declaration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Declaration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Declaration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** VerificationState enum. */
+ enum VerificationState {
+ DECLARATION = 0,
+ UNVERIFIED = 1
+ }
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
+
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** EditionDefault value */
+ value?: (string|null);
+ }
+
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
+
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+
+ /** EditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** EditionDefault value. */
+ public value: string;
+
+ /**
+ * Creates a new EditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Verifies an EditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
+ * @param message EditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
+ }
+
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
+
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
+
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
+
+ /**
+ * Creates a new FeatureSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSet instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
+
+ /**
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet;
+
+ /**
+ * Verifies a FeatureSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
+
+ /**
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
+ * @param message FeatureSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSet {
+
+ /** FieldPresence enum. */
+ enum FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3
+ }
+
+ /** EnumType enum. */
+ enum EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2
+ }
+
+ /** RepeatedFieldEncoding enum. */
+ enum RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 2,
+ NONE = 3
+ }
+
+ /** MessageEncoding enum. */
+ enum MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2
+ }
+
+ /** JsonFormat enum. */
+ enum JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault features */
+ features?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** 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 DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not 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.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @throws {Error} If the payload 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.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @throws {Error} If the payload is not 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.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @throws {Error} If the payload 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.FloatValue;
+
+ /**
+ * Verifies a FloatValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @throws {Error} If the payload is not 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.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @throws {Error} If the payload 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.Int64Value;
+
+ /**
+ * Verifies an Int64Value message.
+ * @param message Plain 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 Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not 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.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @throws {Error} If the payload 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.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @throws {Error} If the payload is not 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.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @throws {Error} If the payload 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.Int32Value;
+
+ /**
+ * Verifies an Int32Value message.
+ * @param message Plain 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 Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not 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.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @throws {Error} If the payload 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.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @throws {Error} If the payload is not 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.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @throws {Error} If the payload 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.BoolValue;
+
+ /**
+ * Verifies a BoolValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoolValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @throws {Error} If the payload is not 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.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @throws {Error} If the payload 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.StringValue;
+
+ /**
+ * Verifies a StringValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @throws {Error} If the payload is not 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.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @throws {Error} If the payload 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.BytesValue;
+
+ /**
+ * Verifies a BytesValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BytesValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** Properties of an Interval. */
+ interface IInterval {
+
+ /** Interval startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Interval endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an Interval. */
+ class Interval implements IInterval {
+
+ /**
+ * Constructs a new Interval.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IInterval);
+
+ /** Interval startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Interval endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Interval instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Interval instance
+ */
+ public static create(properties?: google.type.IInterval): google.type.Interval;
+
+ /**
+ * Encodes the specified Interval message. Does not implicitly {@link google.type.Interval.verify|verify} messages.
+ * @param message Interval message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IInterval, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Interval message, length delimited. Does not implicitly {@link google.type.Interval.verify|verify} messages.
+ * @param message Interval message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IInterval, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Interval message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Interval
+ * @throws {Error} If the payload is not 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.Interval;
+
+ /**
+ * Decodes an Interval message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Interval
+ * @throws {Error} If the payload 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.Interval;
+
+ /**
+ * Verifies an Interval message.
+ * @param message Plain 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 Interval message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Interval
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Interval;
+
+ /**
+ * Creates a plain object from an Interval message. Also converts values to other types if specified.
+ * @param message Interval
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Interval, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Interval to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Interval
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DateTime. */
+ interface IDateTime {
+
+ /** DateTime year */
+ year?: (number|null);
+
+ /** DateTime month */
+ month?: (number|null);
+
+ /** DateTime day */
+ day?: (number|null);
+
+ /** DateTime hours */
+ hours?: (number|null);
+
+ /** DateTime minutes */
+ minutes?: (number|null);
+
+ /** DateTime seconds */
+ seconds?: (number|null);
+
+ /** DateTime nanos */
+ nanos?: (number|null);
+
+ /** DateTime utcOffset */
+ utcOffset?: (google.protobuf.IDuration|null);
+
+ /** DateTime timeZone */
+ timeZone?: (google.type.ITimeZone|null);
+ }
+
+ /** Represents a DateTime. */
+ class DateTime implements IDateTime {
+
+ /**
+ * Constructs a new DateTime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IDateTime);
+
+ /** DateTime year. */
+ public year: number;
+
+ /** DateTime month. */
+ public month: number;
+
+ /** DateTime day. */
+ public day: number;
+
+ /** DateTime hours. */
+ public hours: number;
+
+ /** DateTime minutes. */
+ public minutes: number;
+
+ /** DateTime seconds. */
+ public seconds: number;
+
+ /** DateTime nanos. */
+ public nanos: number;
+
+ /** DateTime utcOffset. */
+ public utcOffset?: (google.protobuf.IDuration|null);
+
+ /** DateTime timeZone. */
+ public timeZone?: (google.type.ITimeZone|null);
+
+ /** DateTime timeOffset. */
+ public timeOffset?: ("utcOffset"|"timeZone");
+
+ /**
+ * Creates a new DateTime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DateTime instance
+ */
+ public static create(properties?: google.type.IDateTime): google.type.DateTime;
+
+ /**
+ * Encodes the specified DateTime message. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
+ * @param message DateTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IDateTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DateTime message, length delimited. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
+ * @param message DateTime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IDateTime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DateTime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DateTime
+ * @throws {Error} If the payload is not 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.DateTime;
+
+ /**
+ * Decodes a DateTime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DateTime
+ * @throws {Error} If the payload 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.DateTime;
+
+ /**
+ * Verifies a DateTime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DateTime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DateTime
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.DateTime;
+
+ /**
+ * Creates a plain object from a DateTime message. Also converts values to other types if specified.
+ * @param message DateTime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.DateTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DateTime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DateTime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimeZone. */
+ interface ITimeZone {
+
+ /** TimeZone id */
+ id?: (string|null);
+
+ /** TimeZone version */
+ version?: (string|null);
+ }
+
+ /** Represents a TimeZone. */
+ class TimeZone implements ITimeZone {
+
+ /**
+ * Constructs a new TimeZone.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.ITimeZone);
+
+ /** TimeZone id. */
+ public id: string;
+
+ /** TimeZone version. */
+ public version: string;
+
+ /**
+ * Creates a new TimeZone instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimeZone instance
+ */
+ public static create(properties?: google.type.ITimeZone): google.type.TimeZone;
+
+ /**
+ * Encodes the specified TimeZone message. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
+ * @param message TimeZone message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.ITimeZone, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimeZone message, length delimited. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
+ * @param message TimeZone message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.ITimeZone, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimeZone message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimeZone
+ * @throws {Error} If the payload is not 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.TimeZone;
+
+ /**
+ * Decodes a TimeZone message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimeZone
+ * @throws {Error} If the payload 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.TimeZone;
+
+ /**
+ * Verifies a TimeZone message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimeZone message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimeZone
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.TimeZone;
+
+ /**
+ * Creates a plain object from a TimeZone message. Also converts values to other types if specified.
+ * @param message TimeZone
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.TimeZone, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimeZone to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimeZone
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhoneNumber. */
+ interface IPhoneNumber {
+
+ /** PhoneNumber e164Number */
+ e164Number?: (string|null);
+
+ /** PhoneNumber shortCode */
+ shortCode?: (google.type.PhoneNumber.IShortCode|null);
+
+ /** PhoneNumber extension */
+ extension?: (string|null);
+ }
+
+ /** Represents a PhoneNumber. */
+ class PhoneNumber implements IPhoneNumber {
+
+ /**
+ * Constructs a new PhoneNumber.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IPhoneNumber);
+
+ /** PhoneNumber e164Number. */
+ public e164Number?: (string|null);
+
+ /** PhoneNumber shortCode. */
+ public shortCode?: (google.type.PhoneNumber.IShortCode|null);
+
+ /** PhoneNumber extension. */
+ public extension: string;
+
+ /** PhoneNumber kind. */
+ public kind?: ("e164Number"|"shortCode");
+
+ /**
+ * Creates a new PhoneNumber instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhoneNumber instance
+ */
+ public static create(properties?: google.type.IPhoneNumber): google.type.PhoneNumber;
+
+ /**
+ * Encodes the specified PhoneNumber message. Does not implicitly {@link google.type.PhoneNumber.verify|verify} messages.
+ * @param message PhoneNumber message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IPhoneNumber, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhoneNumber message, length delimited. Does not implicitly {@link google.type.PhoneNumber.verify|verify} messages.
+ * @param message PhoneNumber message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IPhoneNumber, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhoneNumber message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhoneNumber
+ * @throws {Error} If the payload is not 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.PhoneNumber;
+
+ /**
+ * Decodes a PhoneNumber message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhoneNumber
+ * @throws {Error} If the payload 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.PhoneNumber;
+
+ /**
+ * Verifies a PhoneNumber message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhoneNumber message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhoneNumber
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.PhoneNumber;
+
+ /**
+ * Creates a plain object from a PhoneNumber message. Also converts values to other types if specified.
+ * @param message PhoneNumber
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.PhoneNumber, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhoneNumber to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhoneNumber
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PhoneNumber {
+
+ /** Properties of a ShortCode. */
+ interface IShortCode {
+
+ /** ShortCode regionCode */
+ regionCode?: (string|null);
+
+ /** ShortCode number */
+ number?: (string|null);
+ }
+
+ /** Represents a ShortCode. */
+ class ShortCode implements IShortCode {
+
+ /**
+ * Constructs a new ShortCode.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.PhoneNumber.IShortCode);
+
+ /** ShortCode regionCode. */
+ public regionCode: string;
+
+ /** ShortCode number. */
+ public number: string;
+
+ /**
+ * Creates a new ShortCode instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShortCode instance
+ */
+ public static create(properties?: google.type.PhoneNumber.IShortCode): google.type.PhoneNumber.ShortCode;
+
+ /**
+ * Encodes the specified ShortCode message. Does not implicitly {@link google.type.PhoneNumber.ShortCode.verify|verify} messages.
+ * @param message ShortCode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.PhoneNumber.IShortCode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShortCode message, length delimited. Does not implicitly {@link google.type.PhoneNumber.ShortCode.verify|verify} messages.
+ * @param message ShortCode message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.PhoneNumber.IShortCode, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShortCode message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShortCode
+ * @throws {Error} If the payload is not 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.PhoneNumber.ShortCode;
+
+ /**
+ * Decodes a ShortCode message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShortCode
+ * @throws {Error} If the payload 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.PhoneNumber.ShortCode;
+
+ /**
+ * Verifies a ShortCode message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShortCode message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShortCode
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.PhoneNumber.ShortCode;
+
+ /**
+ * Creates a plain object from a ShortCode message. Also converts values to other types if specified.
+ * @param message ShortCode
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.PhoneNumber.ShortCode, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShortCode to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShortCode
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PostalAddress. */
+ interface IPostalAddress {
+
+ /** PostalAddress revision */
+ revision?: (number|null);
+
+ /** PostalAddress regionCode */
+ regionCode?: (string|null);
+
+ /** PostalAddress languageCode */
+ languageCode?: (string|null);
+
+ /** PostalAddress postalCode */
+ postalCode?: (string|null);
+
+ /** PostalAddress sortingCode */
+ sortingCode?: (string|null);
+
+ /** PostalAddress administrativeArea */
+ administrativeArea?: (string|null);
+
+ /** PostalAddress locality */
+ locality?: (string|null);
+
+ /** PostalAddress sublocality */
+ sublocality?: (string|null);
+
+ /** PostalAddress addressLines */
+ addressLines?: (string[]|null);
+
+ /** PostalAddress recipients */
+ recipients?: (string[]|null);
+
+ /** PostalAddress organization */
+ organization?: (string|null);
+ }
+
+ /** Represents a PostalAddress. */
+ class PostalAddress implements IPostalAddress {
+
+ /**
+ * Constructs a new PostalAddress.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IPostalAddress);
+
+ /** PostalAddress revision. */
+ public revision: number;
+
+ /** PostalAddress regionCode. */
+ public regionCode: string;
+
+ /** PostalAddress languageCode. */
+ public languageCode: string;
+
+ /** PostalAddress postalCode. */
+ public postalCode: string;
+
+ /** PostalAddress sortingCode. */
+ public sortingCode: string;
+
+ /** PostalAddress administrativeArea. */
+ public administrativeArea: string;
+
+ /** PostalAddress locality. */
+ public locality: string;
+
+ /** PostalAddress sublocality. */
+ public sublocality: string;
+
+ /** PostalAddress addressLines. */
+ public addressLines: string[];
+
+ /** PostalAddress recipients. */
+ public recipients: string[];
+
+ /** PostalAddress organization. */
+ public organization: string;
+
+ /**
+ * Creates a new PostalAddress instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PostalAddress instance
+ */
+ public static create(properties?: google.type.IPostalAddress): google.type.PostalAddress;
+
+ /**
+ * Encodes the specified PostalAddress message. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
+ * @param message PostalAddress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IPostalAddress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PostalAddress message, length delimited. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
+ * @param message PostalAddress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IPostalAddress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PostalAddress message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PostalAddress
+ * @throws {Error} If the payload is not 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.PostalAddress;
+
+ /**
+ * Decodes a PostalAddress message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PostalAddress
+ * @throws {Error} If the payload 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.PostalAddress;
+
+ /**
+ * Verifies a PostalAddress message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PostalAddress message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PostalAddress
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.PostalAddress;
+
+ /**
+ * Creates a plain object from a PostalAddress message. Also converts values to other types if specified.
+ * @param message PostalAddress
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.PostalAddress, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PostalAddress to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PostalAddress
+ * @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;
+ }
+ }
+}
diff --git a/packages/google-shopping-merchant-accounts/protos/protos.js b/packages/google-shopping-merchant-accounts/protos/protos.js
new file mode 100644
index 00000000000..443e2de29f1
--- /dev/null
+++ b/packages/google-shopping-merchant-accounts/protos/protos.js
@@ -0,0 +1,56210 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_shopping_accounts_protos || ($protobuf.roots._google_shopping_accounts_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.shopping = (function() {
+
+ /**
+ * Namespace shopping.
+ * @memberof google
+ * @namespace
+ */
+ var shopping = {};
+
+ shopping.merchant = (function() {
+
+ /**
+ * Namespace merchant.
+ * @memberof google.shopping
+ * @namespace
+ */
+ var merchant = {};
+
+ merchant.accounts = (function() {
+
+ /**
+ * Namespace accounts.
+ * @memberof google.shopping.merchant
+ * @namespace
+ */
+ var accounts = {};
+
+ accounts.v1beta = (function() {
+
+ /**
+ * Namespace v1beta.
+ * @memberof google.shopping.merchant.accounts
+ * @namespace
+ */
+ var v1beta = {};
+
+ /**
+ * AccessRight enum.
+ * @name google.shopping.merchant.accounts.v1beta.AccessRight
+ * @enum {number}
+ * @property {number} ACCESS_RIGHT_UNSPECIFIED=0 ACCESS_RIGHT_UNSPECIFIED value
+ * @property {number} STANDARD=1 STANDARD value
+ * @property {number} ADMIN=2 ADMIN value
+ * @property {number} PERFORMANCE_REPORTING=3 PERFORMANCE_REPORTING value
+ */
+ v1beta.AccessRight = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ACCESS_RIGHT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "STANDARD"] = 1;
+ values[valuesById[2] = "ADMIN"] = 2;
+ values[valuesById[3] = "PERFORMANCE_REPORTING"] = 3;
+ return values;
+ })();
+
+ v1beta.AccountTaxService = (function() {
+
+ /**
+ * Constructs a new AccountTaxService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an AccountTaxService
+ * @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 AccountTaxService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (AccountTaxService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AccountTaxService;
+
+ /**
+ * Creates new AccountTaxService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @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 {AccountTaxService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ AccountTaxService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountTaxService|getAccountTax}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @typedef GetAccountTaxCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.AccountTax} [response] AccountTax
+ */
+
+ /**
+ * Calls GetAccountTax.
+ * @function getAccountTax
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest} request GetAccountTaxRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountTaxService.GetAccountTaxCallback} callback Node-style callback called with the error, if any, and AccountTax
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountTaxService.prototype.getAccountTax = function getAccountTax(request, callback) {
+ return this.rpcCall(getAccountTax, $root.google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest, $root.google.shopping.merchant.accounts.v1beta.AccountTax, request, callback);
+ }, "name", { value: "GetAccountTax" });
+
+ /**
+ * Calls GetAccountTax.
+ * @function getAccountTax
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest} request GetAccountTaxRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountTaxService|listAccountTax}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @typedef ListAccountTaxCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse} [response] ListAccountTaxResponse
+ */
+
+ /**
+ * Calls ListAccountTax.
+ * @function listAccountTax
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest} request ListAccountTaxRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountTaxService.ListAccountTaxCallback} callback Node-style callback called with the error, if any, and ListAccountTaxResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountTaxService.prototype.listAccountTax = function listAccountTax(request, callback) {
+ return this.rpcCall(listAccountTax, $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest, $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse, request, callback);
+ }, "name", { value: "ListAccountTax" });
+
+ /**
+ * Calls ListAccountTax.
+ * @function listAccountTax
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest} request ListAccountTaxRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountTaxService|updateAccountTax}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @typedef UpdateAccountTaxCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.AccountTax} [response] AccountTax
+ */
+
+ /**
+ * Calls UpdateAccountTax.
+ * @function updateAccountTax
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest} request UpdateAccountTaxRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountTaxService.UpdateAccountTaxCallback} callback Node-style callback called with the error, if any, and AccountTax
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountTaxService.prototype.updateAccountTax = function updateAccountTax(request, callback) {
+ return this.rpcCall(updateAccountTax, $root.google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest, $root.google.shopping.merchant.accounts.v1beta.AccountTax, request, callback);
+ }, "name", { value: "UpdateAccountTax" });
+
+ /**
+ * Calls UpdateAccountTax.
+ * @function updateAccountTax
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTaxService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest} request UpdateAccountTaxRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return AccountTaxService;
+ })();
+
+ v1beta.AccountTax = (function() {
+
+ /**
+ * Properties of an AccountTax.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IAccountTax
+ * @property {string|null} [name] AccountTax name
+ * @property {number|Long|null} [account] AccountTax account
+ * @property {Array.|null} [taxRules] AccountTax taxRules
+ */
+
+ /**
+ * Constructs a new AccountTax.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an AccountTax.
+ * @implements IAccountTax
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountTax=} [properties] Properties to set
+ */
+ function AccountTax(properties) {
+ this.taxRules = [];
+ 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]];
+ }
+
+ /**
+ * AccountTax name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @instance
+ */
+ AccountTax.prototype.name = "";
+
+ /**
+ * AccountTax account.
+ * @member {number|Long} account
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @instance
+ */
+ AccountTax.prototype.account = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * AccountTax taxRules.
+ * @member {Array.} taxRules
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @instance
+ */
+ AccountTax.prototype.taxRules = $util.emptyArray;
+
+ /**
+ * Creates a new AccountTax instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountTax=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountTax} AccountTax instance
+ */
+ AccountTax.create = function create(properties) {
+ return new AccountTax(properties);
+ };
+
+ /**
+ * Encodes the specified AccountTax message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountTax.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountTax} message AccountTax message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AccountTax.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.account != null && Object.hasOwnProperty.call(message, "account"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.account);
+ if (message.taxRules != null && message.taxRules.length)
+ for (var i = 0; i < message.taxRules.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.TaxRule.encode(message.taxRules[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AccountTax message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountTax.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountTax} message AccountTax message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AccountTax.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AccountTax message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountTax} AccountTax
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AccountTax.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.AccountTax();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.account = reader.int64();
+ break;
+ }
+ case 3: {
+ if (!(message.taxRules && message.taxRules.length))
+ message.taxRules = [];
+ message.taxRules.push($root.google.shopping.merchant.accounts.v1beta.TaxRule.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AccountTax message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountTax} AccountTax
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AccountTax.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AccountTax message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AccountTax.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.account != null && message.hasOwnProperty("account"))
+ if (!$util.isInteger(message.account) && !(message.account && $util.isInteger(message.account.low) && $util.isInteger(message.account.high)))
+ return "account: integer|Long expected";
+ if (message.taxRules != null && message.hasOwnProperty("taxRules")) {
+ if (!Array.isArray(message.taxRules))
+ return "taxRules: array expected";
+ for (var i = 0; i < message.taxRules.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.TaxRule.verify(message.taxRules[i]);
+ if (error)
+ return "taxRules." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AccountTax message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountTax} AccountTax
+ */
+ AccountTax.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.AccountTax)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.AccountTax();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.account != null)
+ if ($util.Long)
+ (message.account = $util.Long.fromValue(object.account)).unsigned = false;
+ else if (typeof object.account === "string")
+ message.account = parseInt(object.account, 10);
+ else if (typeof object.account === "number")
+ message.account = object.account;
+ else if (typeof object.account === "object")
+ message.account = new $util.LongBits(object.account.low >>> 0, object.account.high >>> 0).toNumber();
+ if (object.taxRules) {
+ if (!Array.isArray(object.taxRules))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.AccountTax.taxRules: array expected");
+ message.taxRules = [];
+ for (var i = 0; i < object.taxRules.length; ++i) {
+ if (typeof object.taxRules[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.AccountTax.taxRules: object expected");
+ message.taxRules[i] = $root.google.shopping.merchant.accounts.v1beta.TaxRule.fromObject(object.taxRules[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AccountTax message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountTax} message AccountTax
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AccountTax.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.taxRules = [];
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.account = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.account = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.account != null && message.hasOwnProperty("account"))
+ if (typeof message.account === "number")
+ object.account = options.longs === String ? String(message.account) : message.account;
+ else
+ object.account = options.longs === String ? $util.Long.prototype.toString.call(message.account) : options.longs === Number ? new $util.LongBits(message.account.low >>> 0, message.account.high >>> 0).toNumber() : message.account;
+ if (message.taxRules && message.taxRules.length) {
+ object.taxRules = [];
+ for (var j = 0; j < message.taxRules.length; ++j)
+ object.taxRules[j] = $root.google.shopping.merchant.accounts.v1beta.TaxRule.toObject(message.taxRules[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AccountTax to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AccountTax.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AccountTax
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountTax
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AccountTax.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.AccountTax";
+ };
+
+ return AccountTax;
+ })();
+
+ v1beta.GetAccountTaxRequest = (function() {
+
+ /**
+ * Properties of a GetAccountTaxRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IGetAccountTaxRequest
+ * @property {string|null} [name] GetAccountTaxRequest name
+ */
+
+ /**
+ * Constructs a new GetAccountTaxRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a GetAccountTaxRequest.
+ * @implements IGetAccountTaxRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest=} [properties] Properties to set
+ */
+ function GetAccountTaxRequest(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]];
+ }
+
+ /**
+ * GetAccountTaxRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @instance
+ */
+ GetAccountTaxRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetAccountTaxRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest} GetAccountTaxRequest instance
+ */
+ GetAccountTaxRequest.create = function create(properties) {
+ return new GetAccountTaxRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetAccountTaxRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest} message GetAccountTaxRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAccountTaxRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetAccountTaxRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountTaxRequest} message GetAccountTaxRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAccountTaxRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetAccountTaxRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest} GetAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAccountTaxRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetAccountTaxRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest} GetAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAccountTaxRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetAccountTaxRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetAccountTaxRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetAccountTaxRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest} GetAccountTaxRequest
+ */
+ GetAccountTaxRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetAccountTaxRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest} message GetAccountTaxRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetAccountTaxRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetAccountTaxRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetAccountTaxRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetAccountTaxRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetAccountTaxRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest";
+ };
+
+ return GetAccountTaxRequest;
+ })();
+
+ v1beta.UpdateAccountTaxRequest = (function() {
+
+ /**
+ * Properties of an UpdateAccountTaxRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IUpdateAccountTaxRequest
+ * @property {google.shopping.merchant.accounts.v1beta.IAccountTax|null} [accountTax] UpdateAccountTaxRequest accountTax
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountTaxRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateAccountTaxRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an UpdateAccountTaxRequest.
+ * @implements IUpdateAccountTaxRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest=} [properties] Properties to set
+ */
+ function UpdateAccountTaxRequest(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]];
+ }
+
+ /**
+ * UpdateAccountTaxRequest accountTax.
+ * @member {google.shopping.merchant.accounts.v1beta.IAccountTax|null|undefined} accountTax
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @instance
+ */
+ UpdateAccountTaxRequest.prototype.accountTax = null;
+
+ /**
+ * UpdateAccountTaxRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @instance
+ */
+ UpdateAccountTaxRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateAccountTaxRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest} UpdateAccountTaxRequest instance
+ */
+ UpdateAccountTaxRequest.create = function create(properties) {
+ return new UpdateAccountTaxRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateAccountTaxRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest} message UpdateAccountTaxRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAccountTaxRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.accountTax != null && Object.hasOwnProperty.call(message, "accountTax"))
+ $root.google.shopping.merchant.accounts.v1beta.AccountTax.encode(message.accountTax, 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateAccountTaxRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountTaxRequest} message UpdateAccountTaxRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAccountTaxRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateAccountTaxRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest} UpdateAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAccountTaxRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.accountTax = $root.google.shopping.merchant.accounts.v1beta.AccountTax.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateAccountTaxRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest} UpdateAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAccountTaxRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateAccountTaxRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateAccountTaxRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.accountTax != null && message.hasOwnProperty("accountTax")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.AccountTax.verify(message.accountTax);
+ if (error)
+ return "accountTax." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateAccountTaxRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest} UpdateAccountTaxRequest
+ */
+ UpdateAccountTaxRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest();
+ if (object.accountTax != null) {
+ if (typeof object.accountTax !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest.accountTax: object expected");
+ message.accountTax = $root.google.shopping.merchant.accounts.v1beta.AccountTax.fromObject(object.accountTax);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateAccountTaxRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest} message UpdateAccountTaxRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateAccountTaxRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.accountTax = null;
+ object.updateMask = null;
+ }
+ if (message.accountTax != null && message.hasOwnProperty("accountTax"))
+ object.accountTax = $root.google.shopping.merchant.accounts.v1beta.AccountTax.toObject(message.accountTax, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateAccountTaxRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateAccountTaxRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateAccountTaxRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateAccountTaxRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest";
+ };
+
+ return UpdateAccountTaxRequest;
+ })();
+
+ v1beta.ListAccountTaxRequest = (function() {
+
+ /**
+ * Properties of a ListAccountTaxRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListAccountTaxRequest
+ * @property {string|null} [parent] ListAccountTaxRequest parent
+ * @property {number|null} [pageSize] ListAccountTaxRequest pageSize
+ * @property {string|null} [pageToken] ListAccountTaxRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListAccountTaxRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListAccountTaxRequest.
+ * @implements IListAccountTaxRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest=} [properties] Properties to set
+ */
+ function ListAccountTaxRequest(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]];
+ }
+
+ /**
+ * ListAccountTaxRequest parent.
+ * @member {string} parent
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @instance
+ */
+ ListAccountTaxRequest.prototype.parent = "";
+
+ /**
+ * ListAccountTaxRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @instance
+ */
+ ListAccountTaxRequest.prototype.pageSize = 0;
+
+ /**
+ * ListAccountTaxRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @instance
+ */
+ ListAccountTaxRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListAccountTaxRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest} ListAccountTaxRequest instance
+ */
+ ListAccountTaxRequest.create = function create(properties) {
+ return new ListAccountTaxRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListAccountTaxRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest} message ListAccountTaxRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountTaxRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAccountTaxRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxRequest} message ListAccountTaxRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountTaxRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAccountTaxRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest} ListAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountTaxRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAccountTaxRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest} ListAccountTaxRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountTaxRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAccountTaxRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAccountTaxRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListAccountTaxRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest} ListAccountTaxRequest
+ */
+ ListAccountTaxRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAccountTaxRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest} message ListAccountTaxRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAccountTaxRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ 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;
+ return object;
+ };
+
+ /**
+ * Converts this ListAccountTaxRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAccountTaxRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAccountTaxRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAccountTaxRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest";
+ };
+
+ return ListAccountTaxRequest;
+ })();
+
+ v1beta.ListAccountTaxResponse = (function() {
+
+ /**
+ * Properties of a ListAccountTaxResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListAccountTaxResponse
+ * @property {Array.|null} [accountTaxes] ListAccountTaxResponse accountTaxes
+ * @property {string|null} [nextPageToken] ListAccountTaxResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListAccountTaxResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListAccountTaxResponse.
+ * @implements IListAccountTaxResponse
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse=} [properties] Properties to set
+ */
+ function ListAccountTaxResponse(properties) {
+ this.accountTaxes = [];
+ 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]];
+ }
+
+ /**
+ * ListAccountTaxResponse accountTaxes.
+ * @member {Array.} accountTaxes
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @instance
+ */
+ ListAccountTaxResponse.prototype.accountTaxes = $util.emptyArray;
+
+ /**
+ * ListAccountTaxResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @instance
+ */
+ ListAccountTaxResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListAccountTaxResponse instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse} ListAccountTaxResponse instance
+ */
+ ListAccountTaxResponse.create = function create(properties) {
+ return new ListAccountTaxResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListAccountTaxResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse} message ListAccountTaxResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountTaxResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.accountTaxes != null && message.accountTaxes.length)
+ for (var i = 0; i < message.accountTaxes.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.AccountTax.encode(message.accountTaxes[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 ListAccountTaxResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountTaxResponse} message ListAccountTaxResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountTaxResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAccountTaxResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse} ListAccountTaxResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountTaxResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.accountTaxes && message.accountTaxes.length))
+ message.accountTaxes = [];
+ message.accountTaxes.push($root.google.shopping.merchant.accounts.v1beta.AccountTax.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAccountTaxResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse} ListAccountTaxResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountTaxResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAccountTaxResponse message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAccountTaxResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.accountTaxes != null && message.hasOwnProperty("accountTaxes")) {
+ if (!Array.isArray(message.accountTaxes))
+ return "accountTaxes: array expected";
+ for (var i = 0; i < message.accountTaxes.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.AccountTax.verify(message.accountTaxes[i]);
+ if (error)
+ return "accountTaxes." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAccountTaxResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse} ListAccountTaxResponse
+ */
+ ListAccountTaxResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse();
+ if (object.accountTaxes) {
+ if (!Array.isArray(object.accountTaxes))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse.accountTaxes: array expected");
+ message.accountTaxes = [];
+ for (var i = 0; i < object.accountTaxes.length; ++i) {
+ if (typeof object.accountTaxes[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse.accountTaxes: object expected");
+ message.accountTaxes[i] = $root.google.shopping.merchant.accounts.v1beta.AccountTax.fromObject(object.accountTaxes[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAccountTaxResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse} message ListAccountTaxResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAccountTaxResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.accountTaxes = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.accountTaxes && message.accountTaxes.length) {
+ object.accountTaxes = [];
+ for (var j = 0; j < message.accountTaxes.length; ++j)
+ object.accountTaxes[j] = $root.google.shopping.merchant.accounts.v1beta.AccountTax.toObject(message.accountTaxes[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAccountTaxResponse to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAccountTaxResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAccountTaxResponse
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAccountTaxResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse";
+ };
+
+ return ListAccountTaxResponse;
+ })();
+
+ v1beta.TaxRule = (function() {
+
+ /**
+ * Properties of a TaxRule.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface ITaxRule
+ * @property {number|Long|null} [locationId] TaxRule locationId
+ * @property {google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange|null} [postCodeRange] TaxRule postCodeRange
+ * @property {boolean|null} [useGoogleRate] TaxRule useGoogleRate
+ * @property {number|Long|null} [selfSpecifiedRateMicros] TaxRule selfSpecifiedRateMicros
+ * @property {string|null} [regionCode] TaxRule regionCode
+ * @property {boolean|null} [shippingTaxed] TaxRule shippingTaxed
+ * @property {google.type.IInterval|null} [effectiveTimePeriod] TaxRule effectiveTimePeriod
+ */
+
+ /**
+ * Constructs a new TaxRule.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a TaxRule.
+ * @implements ITaxRule
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.ITaxRule=} [properties] Properties to set
+ */
+ function TaxRule(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]];
+ }
+
+ /**
+ * TaxRule locationId.
+ * @member {number|Long|null|undefined} locationId
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ TaxRule.prototype.locationId = null;
+
+ /**
+ * TaxRule postCodeRange.
+ * @member {google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange|null|undefined} postCodeRange
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ TaxRule.prototype.postCodeRange = null;
+
+ /**
+ * TaxRule useGoogleRate.
+ * @member {boolean|null|undefined} useGoogleRate
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ TaxRule.prototype.useGoogleRate = null;
+
+ /**
+ * TaxRule selfSpecifiedRateMicros.
+ * @member {number|Long|null|undefined} selfSpecifiedRateMicros
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ TaxRule.prototype.selfSpecifiedRateMicros = null;
+
+ /**
+ * TaxRule regionCode.
+ * @member {string} regionCode
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ TaxRule.prototype.regionCode = "";
+
+ /**
+ * TaxRule shippingTaxed.
+ * @member {boolean} shippingTaxed
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ TaxRule.prototype.shippingTaxed = false;
+
+ /**
+ * TaxRule effectiveTimePeriod.
+ * @member {google.type.IInterval|null|undefined} effectiveTimePeriod
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ TaxRule.prototype.effectiveTimePeriod = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * TaxRule location.
+ * @member {"locationId"|"postCodeRange"|undefined} location
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ Object.defineProperty(TaxRule.prototype, "location", {
+ get: $util.oneOfGetter($oneOfFields = ["locationId", "postCodeRange"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TaxRule rateCalculation.
+ * @member {"useGoogleRate"|"selfSpecifiedRateMicros"|undefined} rateCalculation
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ */
+ Object.defineProperty(TaxRule.prototype, "rateCalculation", {
+ get: $util.oneOfGetter($oneOfFields = ["useGoogleRate", "selfSpecifiedRateMicros"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new TaxRule instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ITaxRule=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule} TaxRule instance
+ */
+ TaxRule.create = function create(properties) {
+ return new TaxRule(properties);
+ };
+
+ /**
+ * Encodes the specified TaxRule message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ITaxRule} message TaxRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TaxRule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.regionCode);
+ if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.locationId);
+ if (message.postCodeRange != null && Object.hasOwnProperty.call(message, "postCodeRange"))
+ $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.encode(message.postCodeRange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.useGoogleRate != null && Object.hasOwnProperty.call(message, "useGoogleRate"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.useGoogleRate);
+ if (message.selfSpecifiedRateMicros != null && Object.hasOwnProperty.call(message, "selfSpecifiedRateMicros"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.selfSpecifiedRateMicros);
+ if (message.shippingTaxed != null && Object.hasOwnProperty.call(message, "shippingTaxed"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.shippingTaxed);
+ if (message.effectiveTimePeriod != null && Object.hasOwnProperty.call(message, "effectiveTimePeriod"))
+ $root.google.type.Interval.encode(message.effectiveTimePeriod, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TaxRule message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ITaxRule} message TaxRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TaxRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TaxRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule} TaxRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TaxRule.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.TaxRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.locationId = reader.int64();
+ break;
+ }
+ case 3: {
+ message.postCodeRange = $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.useGoogleRate = reader.bool();
+ break;
+ }
+ case 5: {
+ message.selfSpecifiedRateMicros = reader.int64();
+ break;
+ }
+ case 1: {
+ message.regionCode = reader.string();
+ break;
+ }
+ case 6: {
+ message.shippingTaxed = reader.bool();
+ break;
+ }
+ case 7: {
+ message.effectiveTimePeriod = $root.google.type.Interval.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TaxRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule} TaxRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TaxRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TaxRule message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TaxRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.locationId != null && message.hasOwnProperty("locationId")) {
+ properties.location = 1;
+ if (!$util.isInteger(message.locationId) && !(message.locationId && $util.isInteger(message.locationId.low) && $util.isInteger(message.locationId.high)))
+ return "locationId: integer|Long expected";
+ }
+ if (message.postCodeRange != null && message.hasOwnProperty("postCodeRange")) {
+ if (properties.location === 1)
+ return "location: multiple values";
+ properties.location = 1;
+ {
+ var error = $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.verify(message.postCodeRange);
+ if (error)
+ return "postCodeRange." + error;
+ }
+ }
+ if (message.useGoogleRate != null && message.hasOwnProperty("useGoogleRate")) {
+ properties.rateCalculation = 1;
+ if (typeof message.useGoogleRate !== "boolean")
+ return "useGoogleRate: boolean expected";
+ }
+ if (message.selfSpecifiedRateMicros != null && message.hasOwnProperty("selfSpecifiedRateMicros")) {
+ if (properties.rateCalculation === 1)
+ return "rateCalculation: multiple values";
+ properties.rateCalculation = 1;
+ if (!$util.isInteger(message.selfSpecifiedRateMicros) && !(message.selfSpecifiedRateMicros && $util.isInteger(message.selfSpecifiedRateMicros.low) && $util.isInteger(message.selfSpecifiedRateMicros.high)))
+ return "selfSpecifiedRateMicros: integer|Long expected";
+ }
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
+ if (!$util.isString(message.regionCode))
+ return "regionCode: string expected";
+ if (message.shippingTaxed != null && message.hasOwnProperty("shippingTaxed"))
+ if (typeof message.shippingTaxed !== "boolean")
+ return "shippingTaxed: boolean expected";
+ if (message.effectiveTimePeriod != null && message.hasOwnProperty("effectiveTimePeriod")) {
+ var error = $root.google.type.Interval.verify(message.effectiveTimePeriod);
+ if (error)
+ return "effectiveTimePeriod." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TaxRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule} TaxRule
+ */
+ TaxRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.TaxRule)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.TaxRule();
+ if (object.locationId != null)
+ if ($util.Long)
+ (message.locationId = $util.Long.fromValue(object.locationId)).unsigned = false;
+ else if (typeof object.locationId === "string")
+ message.locationId = parseInt(object.locationId, 10);
+ else if (typeof object.locationId === "number")
+ message.locationId = object.locationId;
+ else if (typeof object.locationId === "object")
+ message.locationId = new $util.LongBits(object.locationId.low >>> 0, object.locationId.high >>> 0).toNumber();
+ if (object.postCodeRange != null) {
+ if (typeof object.postCodeRange !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.TaxRule.postCodeRange: object expected");
+ message.postCodeRange = $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.fromObject(object.postCodeRange);
+ }
+ if (object.useGoogleRate != null)
+ message.useGoogleRate = Boolean(object.useGoogleRate);
+ if (object.selfSpecifiedRateMicros != null)
+ if ($util.Long)
+ (message.selfSpecifiedRateMicros = $util.Long.fromValue(object.selfSpecifiedRateMicros)).unsigned = false;
+ else if (typeof object.selfSpecifiedRateMicros === "string")
+ message.selfSpecifiedRateMicros = parseInt(object.selfSpecifiedRateMicros, 10);
+ else if (typeof object.selfSpecifiedRateMicros === "number")
+ message.selfSpecifiedRateMicros = object.selfSpecifiedRateMicros;
+ else if (typeof object.selfSpecifiedRateMicros === "object")
+ message.selfSpecifiedRateMicros = new $util.LongBits(object.selfSpecifiedRateMicros.low >>> 0, object.selfSpecifiedRateMicros.high >>> 0).toNumber();
+ if (object.regionCode != null)
+ message.regionCode = String(object.regionCode);
+ if (object.shippingTaxed != null)
+ message.shippingTaxed = Boolean(object.shippingTaxed);
+ if (object.effectiveTimePeriod != null) {
+ if (typeof object.effectiveTimePeriod !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.TaxRule.effectiveTimePeriod: object expected");
+ message.effectiveTimePeriod = $root.google.type.Interval.fromObject(object.effectiveTimePeriod);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TaxRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.TaxRule} message TaxRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TaxRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.regionCode = "";
+ object.shippingTaxed = false;
+ object.effectiveTimePeriod = null;
+ }
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
+ object.regionCode = message.regionCode;
+ if (message.locationId != null && message.hasOwnProperty("locationId")) {
+ if (typeof message.locationId === "number")
+ object.locationId = options.longs === String ? String(message.locationId) : message.locationId;
+ else
+ object.locationId = options.longs === String ? $util.Long.prototype.toString.call(message.locationId) : options.longs === Number ? new $util.LongBits(message.locationId.low >>> 0, message.locationId.high >>> 0).toNumber() : message.locationId;
+ if (options.oneofs)
+ object.location = "locationId";
+ }
+ if (message.postCodeRange != null && message.hasOwnProperty("postCodeRange")) {
+ object.postCodeRange = $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.toObject(message.postCodeRange, options);
+ if (options.oneofs)
+ object.location = "postCodeRange";
+ }
+ if (message.useGoogleRate != null && message.hasOwnProperty("useGoogleRate")) {
+ object.useGoogleRate = message.useGoogleRate;
+ if (options.oneofs)
+ object.rateCalculation = "useGoogleRate";
+ }
+ if (message.selfSpecifiedRateMicros != null && message.hasOwnProperty("selfSpecifiedRateMicros")) {
+ if (typeof message.selfSpecifiedRateMicros === "number")
+ object.selfSpecifiedRateMicros = options.longs === String ? String(message.selfSpecifiedRateMicros) : message.selfSpecifiedRateMicros;
+ else
+ object.selfSpecifiedRateMicros = options.longs === String ? $util.Long.prototype.toString.call(message.selfSpecifiedRateMicros) : options.longs === Number ? new $util.LongBits(message.selfSpecifiedRateMicros.low >>> 0, message.selfSpecifiedRateMicros.high >>> 0).toNumber() : message.selfSpecifiedRateMicros;
+ if (options.oneofs)
+ object.rateCalculation = "selfSpecifiedRateMicros";
+ }
+ if (message.shippingTaxed != null && message.hasOwnProperty("shippingTaxed"))
+ object.shippingTaxed = message.shippingTaxed;
+ if (message.effectiveTimePeriod != null && message.hasOwnProperty("effectiveTimePeriod"))
+ object.effectiveTimePeriod = $root.google.type.Interval.toObject(message.effectiveTimePeriod, options);
+ return object;
+ };
+
+ /**
+ * Converts this TaxRule to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TaxRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TaxRule
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TaxRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.TaxRule";
+ };
+
+ TaxRule.TaxPostalCodeRange = (function() {
+
+ /**
+ * Properties of a TaxPostalCodeRange.
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @interface ITaxPostalCodeRange
+ * @property {string|null} [start] TaxPostalCodeRange start
+ * @property {string|null} [end] TaxPostalCodeRange end
+ */
+
+ /**
+ * Constructs a new TaxPostalCodeRange.
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule
+ * @classdesc Represents a TaxPostalCodeRange.
+ * @implements ITaxPostalCodeRange
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange=} [properties] Properties to set
+ */
+ function TaxPostalCodeRange(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]];
+ }
+
+ /**
+ * TaxPostalCodeRange start.
+ * @member {string} start
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @instance
+ */
+ TaxPostalCodeRange.prototype.start = "";
+
+ /**
+ * TaxPostalCodeRange end.
+ * @member {string} end
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @instance
+ */
+ TaxPostalCodeRange.prototype.end = "";
+
+ /**
+ * Creates a new TaxPostalCodeRange instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange} TaxPostalCodeRange instance
+ */
+ TaxPostalCodeRange.create = function create(properties) {
+ return new TaxPostalCodeRange(properties);
+ };
+
+ /**
+ * Encodes the specified TaxPostalCodeRange message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange} message TaxPostalCodeRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TaxPostalCodeRange.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.start != null && Object.hasOwnProperty.call(message, "start"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.start);
+ if (message.end != null && Object.hasOwnProperty.call(message, "end"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.end);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TaxPostalCodeRange message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.TaxRule.ITaxPostalCodeRange} message TaxPostalCodeRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TaxPostalCodeRange.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TaxPostalCodeRange message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange} TaxPostalCodeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TaxPostalCodeRange.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.start = reader.string();
+ break;
+ }
+ case 2: {
+ message.end = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TaxPostalCodeRange message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange} TaxPostalCodeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TaxPostalCodeRange.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TaxPostalCodeRange message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TaxPostalCodeRange.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.start != null && message.hasOwnProperty("start"))
+ if (!$util.isString(message.start))
+ return "start: string expected";
+ if (message.end != null && message.hasOwnProperty("end"))
+ if (!$util.isString(message.end))
+ return "end: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TaxPostalCodeRange message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange} TaxPostalCodeRange
+ */
+ TaxPostalCodeRange.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange();
+ if (object.start != null)
+ message.start = String(object.start);
+ if (object.end != null)
+ message.end = String(object.end);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TaxPostalCodeRange message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange} message TaxPostalCodeRange
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TaxPostalCodeRange.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.start = "";
+ object.end = "";
+ }
+ if (message.start != null && message.hasOwnProperty("start"))
+ object.start = message.start;
+ if (message.end != null && message.hasOwnProperty("end"))
+ object.end = message.end;
+ return object;
+ };
+
+ /**
+ * Converts this TaxPostalCodeRange to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TaxPostalCodeRange.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TaxPostalCodeRange
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TaxPostalCodeRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange";
+ };
+
+ return TaxPostalCodeRange;
+ })();
+
+ return TaxRule;
+ })();
+
+ v1beta.AccountIssueService = (function() {
+
+ /**
+ * Constructs a new AccountIssueService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an AccountIssueService
+ * @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 AccountIssueService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (AccountIssueService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AccountIssueService;
+
+ /**
+ * Creates new AccountIssueService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssueService
+ * @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 {AccountIssueService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ AccountIssueService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountIssueService|listAccountIssues}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssueService
+ * @typedef ListAccountIssuesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse} [response] ListAccountIssuesResponse
+ */
+
+ /**
+ * Calls ListAccountIssues.
+ * @function listAccountIssues
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssueService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest} request ListAccountIssuesRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssueService.ListAccountIssuesCallback} callback Node-style callback called with the error, if any, and ListAccountIssuesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountIssueService.prototype.listAccountIssues = function listAccountIssues(request, callback) {
+ return this.rpcCall(listAccountIssues, $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest, $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse, request, callback);
+ }, "name", { value: "ListAccountIssues" });
+
+ /**
+ * Calls ListAccountIssues.
+ * @function listAccountIssues
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssueService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest} request ListAccountIssuesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return AccountIssueService;
+ })();
+
+ v1beta.AccountIssue = (function() {
+
+ /**
+ * Properties of an AccountIssue.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IAccountIssue
+ * @property {string|null} [name] AccountIssue name
+ * @property {string|null} [title] AccountIssue title
+ * @property {google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|null} [severity] AccountIssue severity
+ * @property {Array.|null} [impactedDestinations] AccountIssue impactedDestinations
+ * @property {string|null} [detail] AccountIssue detail
+ * @property {string|null} [documentationUri] AccountIssue documentationUri
+ */
+
+ /**
+ * Constructs a new AccountIssue.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an AccountIssue.
+ * @implements IAccountIssue
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountIssue=} [properties] Properties to set
+ */
+ function AccountIssue(properties) {
+ this.impactedDestinations = [];
+ 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]];
+ }
+
+ /**
+ * AccountIssue name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @instance
+ */
+ AccountIssue.prototype.name = "";
+
+ /**
+ * AccountIssue title.
+ * @member {string} title
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @instance
+ */
+ AccountIssue.prototype.title = "";
+
+ /**
+ * AccountIssue severity.
+ * @member {google.shopping.merchant.accounts.v1beta.AccountIssue.Severity} severity
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @instance
+ */
+ AccountIssue.prototype.severity = 0;
+
+ /**
+ * AccountIssue impactedDestinations.
+ * @member {Array.} impactedDestinations
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @instance
+ */
+ AccountIssue.prototype.impactedDestinations = $util.emptyArray;
+
+ /**
+ * AccountIssue detail.
+ * @member {string} detail
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @instance
+ */
+ AccountIssue.prototype.detail = "";
+
+ /**
+ * AccountIssue documentationUri.
+ * @member {string} documentationUri
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @instance
+ */
+ AccountIssue.prototype.documentationUri = "";
+
+ /**
+ * Creates a new AccountIssue instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountIssue=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue} AccountIssue instance
+ */
+ AccountIssue.create = function create(properties) {
+ return new AccountIssue(properties);
+ };
+
+ /**
+ * Encodes the specified AccountIssue message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountIssue} message AccountIssue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AccountIssue.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.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
+ if (message.severity != null && Object.hasOwnProperty.call(message, "severity"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.severity);
+ if (message.impactedDestinations != null && message.impactedDestinations.length)
+ for (var i = 0; i < message.impactedDestinations.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.encode(message.impactedDestinations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.detail != null && Object.hasOwnProperty.call(message, "detail"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.detail);
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.documentationUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AccountIssue message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccountIssue} message AccountIssue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AccountIssue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AccountIssue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue} AccountIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AccountIssue.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.AccountIssue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.title = reader.string();
+ break;
+ }
+ case 3: {
+ message.severity = reader.int32();
+ break;
+ }
+ case 4: {
+ if (!(message.impactedDestinations && message.impactedDestinations.length))
+ message.impactedDestinations = [];
+ message.impactedDestinations.push($root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ message.detail = reader.string();
+ break;
+ }
+ case 6: {
+ message.documentationUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AccountIssue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue} AccountIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AccountIssue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AccountIssue message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AccountIssue.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.title != null && message.hasOwnProperty("title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ switch (message.severity) {
+ default:
+ return "severity: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.impactedDestinations != null && message.hasOwnProperty("impactedDestinations")) {
+ if (!Array.isArray(message.impactedDestinations))
+ return "impactedDestinations: array expected";
+ for (var i = 0; i < message.impactedDestinations.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.verify(message.impactedDestinations[i]);
+ if (error)
+ return "impactedDestinations." + error;
+ }
+ }
+ if (message.detail != null && message.hasOwnProperty("detail"))
+ if (!$util.isString(message.detail))
+ return "detail: string expected";
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ if (!$util.isString(message.documentationUri))
+ return "documentationUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AccountIssue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue} AccountIssue
+ */
+ AccountIssue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.AccountIssue)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.AccountIssue();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.title != null)
+ message.title = String(object.title);
+ switch (object.severity) {
+ default:
+ if (typeof object.severity === "number") {
+ message.severity = object.severity;
+ break;
+ }
+ break;
+ case "SEVERITY_UNSPECIFIED":
+ case 0:
+ message.severity = 0;
+ break;
+ case "CRITICAL":
+ case 1:
+ message.severity = 1;
+ break;
+ case "ERROR":
+ case 2:
+ message.severity = 2;
+ break;
+ case "SUGGESTION":
+ case 3:
+ message.severity = 3;
+ break;
+ }
+ if (object.impactedDestinations) {
+ if (!Array.isArray(object.impactedDestinations))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.AccountIssue.impactedDestinations: array expected");
+ message.impactedDestinations = [];
+ for (var i = 0; i < object.impactedDestinations.length; ++i) {
+ if (typeof object.impactedDestinations[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.AccountIssue.impactedDestinations: object expected");
+ message.impactedDestinations[i] = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.fromObject(object.impactedDestinations[i]);
+ }
+ }
+ if (object.detail != null)
+ message.detail = String(object.detail);
+ if (object.documentationUri != null)
+ message.documentationUri = String(object.documentationUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AccountIssue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue} message AccountIssue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AccountIssue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.impactedDestinations = [];
+ if (options.defaults) {
+ object.name = "";
+ object.title = "";
+ object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0;
+ object.detail = "";
+ object.documentationUri = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.title != null && message.hasOwnProperty("title"))
+ object.title = message.title;
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ object.severity = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity[message.severity] === undefined ? message.severity : $root.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity[message.severity] : message.severity;
+ if (message.impactedDestinations && message.impactedDestinations.length) {
+ object.impactedDestinations = [];
+ for (var j = 0; j < message.impactedDestinations.length; ++j)
+ object.impactedDestinations[j] = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.toObject(message.impactedDestinations[j], options);
+ }
+ if (message.detail != null && message.hasOwnProperty("detail"))
+ object.detail = message.detail;
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ object.documentationUri = message.documentationUri;
+ return object;
+ };
+
+ /**
+ * Converts this AccountIssue to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AccountIssue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AccountIssue
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AccountIssue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.AccountIssue";
+ };
+
+ AccountIssue.ImpactedDestination = (function() {
+
+ /**
+ * Properties of an ImpactedDestination.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @interface IImpactedDestination
+ * @property {google.shopping.type.ReportingContext.ReportingContextEnum|null} [reportingContext] ImpactedDestination reportingContext
+ * @property {Array.|null} [impacts] ImpactedDestination impacts
+ */
+
+ /**
+ * Constructs a new ImpactedDestination.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue
+ * @classdesc Represents an ImpactedDestination.
+ * @implements IImpactedDestination
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination=} [properties] Properties to set
+ */
+ function ImpactedDestination(properties) {
+ this.impacts = [];
+ 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]];
+ }
+
+ /**
+ * ImpactedDestination reportingContext.
+ * @member {google.shopping.type.ReportingContext.ReportingContextEnum|null|undefined} reportingContext
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @instance
+ */
+ ImpactedDestination.prototype.reportingContext = null;
+
+ /**
+ * ImpactedDestination impacts.
+ * @member {Array.} impacts
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @instance
+ */
+ ImpactedDestination.prototype.impacts = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * ImpactedDestination _reportingContext.
+ * @member {"reportingContext"|undefined} _reportingContext
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @instance
+ */
+ Object.defineProperty(ImpactedDestination.prototype, "_reportingContext", {
+ get: $util.oneOfGetter($oneOfFields = ["reportingContext"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ImpactedDestination instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination} ImpactedDestination instance
+ */
+ ImpactedDestination.create = function create(properties) {
+ return new ImpactedDestination(properties);
+ };
+
+ /**
+ * Encodes the specified ImpactedDestination message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination} message ImpactedDestination message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImpactedDestination.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.reportingContext != null && Object.hasOwnProperty.call(message, "reportingContext"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reportingContext);
+ if (message.impacts != null && message.impacts.length)
+ for (var i = 0; i < message.impacts.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.encode(message.impacts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImpactedDestination message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.IImpactedDestination} message ImpactedDestination message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImpactedDestination.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImpactedDestination message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination} ImpactedDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImpactedDestination.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.reportingContext = reader.int32();
+ break;
+ }
+ case 2: {
+ if (!(message.impacts && message.impacts.length))
+ message.impacts = [];
+ message.impacts.push($root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImpactedDestination message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination} ImpactedDestination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImpactedDestination.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImpactedDestination message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImpactedDestination.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.reportingContext != null && message.hasOwnProperty("reportingContext")) {
+ properties._reportingContext = 1;
+ switch (message.reportingContext) {
+ default:
+ return "reportingContext: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 13:
+ case 14:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ break;
+ }
+ }
+ if (message.impacts != null && message.hasOwnProperty("impacts")) {
+ if (!Array.isArray(message.impacts))
+ return "impacts: array expected";
+ for (var i = 0; i < message.impacts.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.verify(message.impacts[i]);
+ if (error)
+ return "impacts." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ImpactedDestination message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination} ImpactedDestination
+ */
+ ImpactedDestination.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination();
+ switch (object.reportingContext) {
+ default:
+ if (typeof object.reportingContext === "number") {
+ message.reportingContext = object.reportingContext;
+ break;
+ }
+ break;
+ case "REPORTING_CONTEXT_ENUM_UNSPECIFIED":
+ case 0:
+ message.reportingContext = 0;
+ break;
+ case "SHOPPING_ADS":
+ case 1:
+ message.reportingContext = 1;
+ break;
+ case "DISCOVERY_ADS":
+ case 2:
+ message.reportingContext = 2;
+ break;
+ case "DEMAND_GEN_ADS":
+ case 13:
+ message.reportingContext = 13;
+ break;
+ case "DEMAND_GEN_ADS_DISCOVER_SURFACE":
+ case 14:
+ message.reportingContext = 14;
+ break;
+ case "VIDEO_ADS":
+ case 3:
+ message.reportingContext = 3;
+ break;
+ case "DISPLAY_ADS":
+ case 4:
+ message.reportingContext = 4;
+ break;
+ case "LOCAL_INVENTORY_ADS":
+ case 5:
+ message.reportingContext = 5;
+ break;
+ case "VEHICLE_INVENTORY_ADS":
+ case 6:
+ message.reportingContext = 6;
+ break;
+ case "FREE_LISTINGS":
+ case 7:
+ message.reportingContext = 7;
+ break;
+ case "FREE_LOCAL_LISTINGS":
+ case 8:
+ message.reportingContext = 8;
+ break;
+ case "FREE_LOCAL_VEHICLE_LISTINGS":
+ case 9:
+ message.reportingContext = 9;
+ break;
+ case "YOUTUBE_SHOPPING":
+ case 10:
+ message.reportingContext = 10;
+ break;
+ case "CLOUD_RETAIL":
+ case 11:
+ message.reportingContext = 11;
+ break;
+ case "LOCAL_CLOUD_RETAIL":
+ case 12:
+ message.reportingContext = 12;
+ break;
+ }
+ if (object.impacts) {
+ if (!Array.isArray(object.impacts))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.impacts: array expected");
+ message.impacts = [];
+ for (var i = 0; i < object.impacts.length; ++i) {
+ if (typeof object.impacts[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.impacts: object expected");
+ message.impacts[i] = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.fromObject(object.impacts[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImpactedDestination message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination} message ImpactedDestination
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImpactedDestination.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.impacts = [];
+ if (message.reportingContext != null && message.hasOwnProperty("reportingContext")) {
+ object.reportingContext = options.enums === String ? $root.google.shopping.type.ReportingContext.ReportingContextEnum[message.reportingContext] === undefined ? message.reportingContext : $root.google.shopping.type.ReportingContext.ReportingContextEnum[message.reportingContext] : message.reportingContext;
+ if (options.oneofs)
+ object._reportingContext = "reportingContext";
+ }
+ if (message.impacts && message.impacts.length) {
+ object.impacts = [];
+ for (var j = 0; j < message.impacts.length; ++j)
+ object.impacts[j] = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.toObject(message.impacts[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ImpactedDestination to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImpactedDestination.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImpactedDestination
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImpactedDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination";
+ };
+
+ ImpactedDestination.Impact = (function() {
+
+ /**
+ * Properties of an Impact.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @interface IImpact
+ * @property {string|null} [regionCode] Impact regionCode
+ * @property {google.shopping.merchant.accounts.v1beta.AccountIssue.Severity|null} [severity] Impact severity
+ */
+
+ /**
+ * Constructs a new Impact.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination
+ * @classdesc Represents an Impact.
+ * @implements IImpact
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact=} [properties] Properties to set
+ */
+ function Impact(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]];
+ }
+
+ /**
+ * Impact regionCode.
+ * @member {string} regionCode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @instance
+ */
+ Impact.prototype.regionCode = "";
+
+ /**
+ * Impact severity.
+ * @member {google.shopping.merchant.accounts.v1beta.AccountIssue.Severity} severity
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @instance
+ */
+ Impact.prototype.severity = 0;
+
+ /**
+ * Creates a new Impact instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact} Impact instance
+ */
+ Impact.create = function create(properties) {
+ return new Impact(properties);
+ };
+
+ /**
+ * Encodes the specified Impact message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact} message Impact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Impact.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.regionCode);
+ if (message.severity != null && Object.hasOwnProperty.call(message, "severity"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.severity);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Impact message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.IImpact} message Impact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Impact.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Impact message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact} Impact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Impact.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.regionCode = reader.string();
+ break;
+ }
+ case 2: {
+ message.severity = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Impact message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact} Impact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Impact.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Impact message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Impact.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
+ if (!$util.isString(message.regionCode))
+ return "regionCode: string expected";
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ switch (message.severity) {
+ default:
+ return "severity: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Impact message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact} Impact
+ */
+ Impact.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact();
+ if (object.regionCode != null)
+ message.regionCode = String(object.regionCode);
+ switch (object.severity) {
+ default:
+ if (typeof object.severity === "number") {
+ message.severity = object.severity;
+ break;
+ }
+ break;
+ case "SEVERITY_UNSPECIFIED":
+ case 0:
+ message.severity = 0;
+ break;
+ case "CRITICAL":
+ case 1:
+ message.severity = 1;
+ break;
+ case "ERROR":
+ case 2:
+ message.severity = 2;
+ break;
+ case "SUGGESTION":
+ case 3:
+ message.severity = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Impact message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact} message Impact
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Impact.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.regionCode = "";
+ object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0;
+ }
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
+ object.regionCode = message.regionCode;
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ object.severity = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity[message.severity] === undefined ? message.severity : $root.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity[message.severity] : message.severity;
+ return object;
+ };
+
+ /**
+ * Converts this Impact to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Impact.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Impact
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Impact.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact";
+ };
+
+ return Impact;
+ })();
+
+ return ImpactedDestination;
+ })();
+
+ /**
+ * Severity enum.
+ * @name google.shopping.merchant.accounts.v1beta.AccountIssue.Severity
+ * @enum {number}
+ * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value
+ * @property {number} CRITICAL=1 CRITICAL value
+ * @property {number} ERROR=2 ERROR value
+ * @property {number} SUGGESTION=3 SUGGESTION value
+ */
+ AccountIssue.Severity = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CRITICAL"] = 1;
+ values[valuesById[2] = "ERROR"] = 2;
+ values[valuesById[3] = "SUGGESTION"] = 3;
+ return values;
+ })();
+
+ return AccountIssue;
+ })();
+
+ v1beta.ListAccountIssuesRequest = (function() {
+
+ /**
+ * Properties of a ListAccountIssuesRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListAccountIssuesRequest
+ * @property {string|null} [parent] ListAccountIssuesRequest parent
+ * @property {number|null} [pageSize] ListAccountIssuesRequest pageSize
+ * @property {string|null} [pageToken] ListAccountIssuesRequest pageToken
+ * @property {string|null} [languageCode] ListAccountIssuesRequest languageCode
+ * @property {google.type.ITimeZone|null} [timeZone] ListAccountIssuesRequest timeZone
+ */
+
+ /**
+ * Constructs a new ListAccountIssuesRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListAccountIssuesRequest.
+ * @implements IListAccountIssuesRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest=} [properties] Properties to set
+ */
+ function ListAccountIssuesRequest(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]];
+ }
+
+ /**
+ * ListAccountIssuesRequest parent.
+ * @member {string} parent
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @instance
+ */
+ ListAccountIssuesRequest.prototype.parent = "";
+
+ /**
+ * ListAccountIssuesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @instance
+ */
+ ListAccountIssuesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListAccountIssuesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @instance
+ */
+ ListAccountIssuesRequest.prototype.pageToken = "";
+
+ /**
+ * ListAccountIssuesRequest languageCode.
+ * @member {string} languageCode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @instance
+ */
+ ListAccountIssuesRequest.prototype.languageCode = "";
+
+ /**
+ * ListAccountIssuesRequest timeZone.
+ * @member {google.type.ITimeZone|null|undefined} timeZone
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @instance
+ */
+ ListAccountIssuesRequest.prototype.timeZone = null;
+
+ /**
+ * Creates a new ListAccountIssuesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest} ListAccountIssuesRequest instance
+ */
+ ListAccountIssuesRequest.create = function create(properties) {
+ return new ListAccountIssuesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListAccountIssuesRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest} message ListAccountIssuesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountIssuesRequest.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.languageCode != null && Object.hasOwnProperty.call(message, "languageCode"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode);
+ if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone"))
+ $root.google.type.TimeZone.encode(message.timeZone, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAccountIssuesRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesRequest} message ListAccountIssuesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountIssuesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAccountIssuesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest} ListAccountIssuesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountIssuesRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.languageCode = reader.string();
+ break;
+ }
+ case 5: {
+ message.timeZone = $root.google.type.TimeZone.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAccountIssuesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest} ListAccountIssuesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountIssuesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAccountIssuesRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAccountIssuesRequest.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.languageCode != null && message.hasOwnProperty("languageCode"))
+ if (!$util.isString(message.languageCode))
+ return "languageCode: string expected";
+ if (message.timeZone != null && message.hasOwnProperty("timeZone")) {
+ var error = $root.google.type.TimeZone.verify(message.timeZone);
+ if (error)
+ return "timeZone." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListAccountIssuesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest} ListAccountIssuesRequest
+ */
+ ListAccountIssuesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest();
+ 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.languageCode != null)
+ message.languageCode = String(object.languageCode);
+ if (object.timeZone != null) {
+ if (typeof object.timeZone !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest.timeZone: object expected");
+ message.timeZone = $root.google.type.TimeZone.fromObject(object.timeZone);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAccountIssuesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest} message ListAccountIssuesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAccountIssuesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.languageCode = "";
+ object.timeZone = null;
+ }
+ 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.languageCode != null && message.hasOwnProperty("languageCode"))
+ object.languageCode = message.languageCode;
+ if (message.timeZone != null && message.hasOwnProperty("timeZone"))
+ object.timeZone = $root.google.type.TimeZone.toObject(message.timeZone, options);
+ return object;
+ };
+
+ /**
+ * Converts this ListAccountIssuesRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAccountIssuesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAccountIssuesRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAccountIssuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest";
+ };
+
+ return ListAccountIssuesRequest;
+ })();
+
+ v1beta.ListAccountIssuesResponse = (function() {
+
+ /**
+ * Properties of a ListAccountIssuesResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListAccountIssuesResponse
+ * @property {Array.|null} [accountIssues] ListAccountIssuesResponse accountIssues
+ * @property {string|null} [nextPageToken] ListAccountIssuesResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListAccountIssuesResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListAccountIssuesResponse.
+ * @implements IListAccountIssuesResponse
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse=} [properties] Properties to set
+ */
+ function ListAccountIssuesResponse(properties) {
+ this.accountIssues = [];
+ 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]];
+ }
+
+ /**
+ * ListAccountIssuesResponse accountIssues.
+ * @member {Array.} accountIssues
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @instance
+ */
+ ListAccountIssuesResponse.prototype.accountIssues = $util.emptyArray;
+
+ /**
+ * ListAccountIssuesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @instance
+ */
+ ListAccountIssuesResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListAccountIssuesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse} ListAccountIssuesResponse instance
+ */
+ ListAccountIssuesResponse.create = function create(properties) {
+ return new ListAccountIssuesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListAccountIssuesResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse} message ListAccountIssuesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountIssuesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.accountIssues != null && message.accountIssues.length)
+ for (var i = 0; i < message.accountIssues.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.AccountIssue.encode(message.accountIssues[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 ListAccountIssuesResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountIssuesResponse} message ListAccountIssuesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountIssuesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAccountIssuesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse} ListAccountIssuesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountIssuesResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.accountIssues && message.accountIssues.length))
+ message.accountIssues = [];
+ message.accountIssues.push($root.google.shopping.merchant.accounts.v1beta.AccountIssue.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAccountIssuesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse} ListAccountIssuesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountIssuesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAccountIssuesResponse message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAccountIssuesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.accountIssues != null && message.hasOwnProperty("accountIssues")) {
+ if (!Array.isArray(message.accountIssues))
+ return "accountIssues: array expected";
+ for (var i = 0; i < message.accountIssues.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.verify(message.accountIssues[i]);
+ if (error)
+ return "accountIssues." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAccountIssuesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse} ListAccountIssuesResponse
+ */
+ ListAccountIssuesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse();
+ if (object.accountIssues) {
+ if (!Array.isArray(object.accountIssues))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse.accountIssues: array expected");
+ message.accountIssues = [];
+ for (var i = 0; i < object.accountIssues.length; ++i) {
+ if (typeof object.accountIssues[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse.accountIssues: object expected");
+ message.accountIssues[i] = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.fromObject(object.accountIssues[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAccountIssuesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse} message ListAccountIssuesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAccountIssuesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.accountIssues = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.accountIssues && message.accountIssues.length) {
+ object.accountIssues = [];
+ for (var j = 0; j < message.accountIssues.length; ++j)
+ object.accountIssues[j] = $root.google.shopping.merchant.accounts.v1beta.AccountIssue.toObject(message.accountIssues[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAccountIssuesResponse to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAccountIssuesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAccountIssuesResponse
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAccountIssuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse";
+ };
+
+ return ListAccountIssuesResponse;
+ })();
+
+ v1beta.AccountsService = (function() {
+
+ /**
+ * Constructs a new AccountsService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an AccountsService
+ * @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 AccountsService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (AccountsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AccountsService;
+
+ /**
+ * Creates new AccountsService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @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 {AccountsService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ AccountsService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|getAccount}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @typedef GetAccountCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.Account} [response] Account
+ */
+
+ /**
+ * Calls GetAccount.
+ * @function getAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountRequest} request GetAccountRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountsService.GetAccountCallback} callback Node-style callback called with the error, if any, and Account
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountsService.prototype.getAccount = function getAccount(request, callback) {
+ return this.rpcCall(getAccount, $root.google.shopping.merchant.accounts.v1beta.GetAccountRequest, $root.google.shopping.merchant.accounts.v1beta.Account, request, callback);
+ }, "name", { value: "GetAccount" });
+
+ /**
+ * Calls GetAccount.
+ * @function getAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountRequest} request GetAccountRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|createAndConfigureAccount}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @typedef CreateAndConfigureAccountCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.Account} [response] Account
+ */
+
+ /**
+ * Calls CreateAndConfigureAccount.
+ * @function createAndConfigureAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest} request CreateAndConfigureAccountRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountsService.CreateAndConfigureAccountCallback} callback Node-style callback called with the error, if any, and Account
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountsService.prototype.createAndConfigureAccount = function createAndConfigureAccount(request, callback) {
+ return this.rpcCall(createAndConfigureAccount, $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest, $root.google.shopping.merchant.accounts.v1beta.Account, request, callback);
+ }, "name", { value: "CreateAndConfigureAccount" });
+
+ /**
+ * Calls CreateAndConfigureAccount.
+ * @function createAndConfigureAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest} request CreateAndConfigureAccountRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|deleteAccount}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @typedef DeleteAccountCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteAccount.
+ * @function deleteAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest} request DeleteAccountRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountsService.DeleteAccountCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountsService.prototype.deleteAccount = function deleteAccount(request, callback) {
+ return this.rpcCall(deleteAccount, $root.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteAccount" });
+
+ /**
+ * Calls DeleteAccount.
+ * @function deleteAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest} request DeleteAccountRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|updateAccount}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @typedef UpdateAccountCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.Account} [response] Account
+ */
+
+ /**
+ * Calls UpdateAccount.
+ * @function updateAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest} request UpdateAccountRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountsService.UpdateAccountCallback} callback Node-style callback called with the error, if any, and Account
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountsService.prototype.updateAccount = function updateAccount(request, callback) {
+ return this.rpcCall(updateAccount, $root.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest, $root.google.shopping.merchant.accounts.v1beta.Account, request, callback);
+ }, "name", { value: "UpdateAccount" });
+
+ /**
+ * Calls UpdateAccount.
+ * @function updateAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest} request UpdateAccountRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|listAccounts}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @typedef ListAccountsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountsResponse} [response] ListAccountsResponse
+ */
+
+ /**
+ * Calls ListAccounts.
+ * @function listAccounts
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsRequest} request ListAccountsRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountsService.ListAccountsCallback} callback Node-style callback called with the error, if any, and ListAccountsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountsService.prototype.listAccounts = function listAccounts(request, callback) {
+ return this.rpcCall(listAccounts, $root.google.shopping.merchant.accounts.v1beta.ListAccountsRequest, $root.google.shopping.merchant.accounts.v1beta.ListAccountsResponse, request, callback);
+ }, "name", { value: "ListAccounts" });
+
+ /**
+ * Calls ListAccounts.
+ * @function listAccounts
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsRequest} request ListAccountsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.AccountsService|listSubAccounts}.
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @typedef ListSubAccountsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse} [response] ListSubAccountsResponse
+ */
+
+ /**
+ * Calls ListSubAccounts.
+ * @function listSubAccounts
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest} request ListSubAccountsRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.AccountsService.ListSubAccountsCallback} callback Node-style callback called with the error, if any, and ListSubAccountsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AccountsService.prototype.listSubAccounts = function listSubAccounts(request, callback) {
+ return this.rpcCall(listSubAccounts, $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest, $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse, request, callback);
+ }, "name", { value: "ListSubAccounts" });
+
+ /**
+ * Calls ListSubAccounts.
+ * @function listSubAccounts
+ * @memberof google.shopping.merchant.accounts.v1beta.AccountsService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest} request ListSubAccountsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return AccountsService;
+ })();
+
+ v1beta.Account = (function() {
+
+ /**
+ * Properties of an Account.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IAccount
+ * @property {string|null} [name] Account name
+ * @property {number|Long|null} [accountId] Account accountId
+ * @property {string|null} [accountName] Account accountName
+ * @property {boolean|null} [adultContent] Account adultContent
+ * @property {boolean|null} [testAccount] Account testAccount
+ * @property {google.type.ITimeZone|null} [timeZone] Account timeZone
+ * @property {string|null} [languageCode] Account languageCode
+ */
+
+ /**
+ * Constructs a new Account.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an Account.
+ * @implements IAccount
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IAccount=} [properties] Properties to set
+ */
+ function Account(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]];
+ }
+
+ /**
+ * Account name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ */
+ Account.prototype.name = "";
+
+ /**
+ * Account accountId.
+ * @member {number|Long} accountId
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ */
+ Account.prototype.accountId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Account accountName.
+ * @member {string} accountName
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ */
+ Account.prototype.accountName = "";
+
+ /**
+ * Account adultContent.
+ * @member {boolean} adultContent
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ */
+ Account.prototype.adultContent = false;
+
+ /**
+ * Account testAccount.
+ * @member {boolean} testAccount
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ */
+ Account.prototype.testAccount = false;
+
+ /**
+ * Account timeZone.
+ * @member {google.type.ITimeZone|null|undefined} timeZone
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ */
+ Account.prototype.timeZone = null;
+
+ /**
+ * Account languageCode.
+ * @member {string} languageCode
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ */
+ Account.prototype.languageCode = "";
+
+ /**
+ * Creates a new Account instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccount=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.Account} Account instance
+ */
+ Account.create = function create(properties) {
+ return new Account(properties);
+ };
+
+ /**
+ * Encodes the specified Account message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Account.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccount} message Account message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Account.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.accountId != null && Object.hasOwnProperty.call(message, "accountId"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.accountId);
+ if (message.accountName != null && Object.hasOwnProperty.call(message, "accountName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.accountName);
+ if (message.adultContent != null && Object.hasOwnProperty.call(message, "adultContent"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.adultContent);
+ if (message.testAccount != null && Object.hasOwnProperty.call(message, "testAccount"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.testAccount);
+ if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone"))
+ $root.google.type.TimeZone.encode(message.timeZone, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.languageCode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Account message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Account.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IAccount} message Account message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Account.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Account message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.Account} Account
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Account.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.Account();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.accountId = reader.int64();
+ break;
+ }
+ case 3: {
+ message.accountName = reader.string();
+ break;
+ }
+ case 4: {
+ message.adultContent = reader.bool();
+ break;
+ }
+ case 5: {
+ message.testAccount = reader.bool();
+ break;
+ }
+ case 6: {
+ message.timeZone = $root.google.type.TimeZone.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.languageCode = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Account message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.Account} Account
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Account.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Account message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Account.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.accountId != null && message.hasOwnProperty("accountId"))
+ if (!$util.isInteger(message.accountId) && !(message.accountId && $util.isInteger(message.accountId.low) && $util.isInteger(message.accountId.high)))
+ return "accountId: integer|Long expected";
+ if (message.accountName != null && message.hasOwnProperty("accountName"))
+ if (!$util.isString(message.accountName))
+ return "accountName: string expected";
+ if (message.adultContent != null && message.hasOwnProperty("adultContent"))
+ if (typeof message.adultContent !== "boolean")
+ return "adultContent: boolean expected";
+ if (message.testAccount != null && message.hasOwnProperty("testAccount"))
+ if (typeof message.testAccount !== "boolean")
+ return "testAccount: boolean expected";
+ if (message.timeZone != null && message.hasOwnProperty("timeZone")) {
+ var error = $root.google.type.TimeZone.verify(message.timeZone);
+ if (error)
+ return "timeZone." + error;
+ }
+ if (message.languageCode != null && message.hasOwnProperty("languageCode"))
+ if (!$util.isString(message.languageCode))
+ return "languageCode: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an Account message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.Account} Account
+ */
+ Account.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.Account)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.Account();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.accountId != null)
+ if ($util.Long)
+ (message.accountId = $util.Long.fromValue(object.accountId)).unsigned = false;
+ else if (typeof object.accountId === "string")
+ message.accountId = parseInt(object.accountId, 10);
+ else if (typeof object.accountId === "number")
+ message.accountId = object.accountId;
+ else if (typeof object.accountId === "object")
+ message.accountId = new $util.LongBits(object.accountId.low >>> 0, object.accountId.high >>> 0).toNumber();
+ if (object.accountName != null)
+ message.accountName = String(object.accountName);
+ if (object.adultContent != null)
+ message.adultContent = Boolean(object.adultContent);
+ if (object.testAccount != null)
+ message.testAccount = Boolean(object.testAccount);
+ if (object.timeZone != null) {
+ if (typeof object.timeZone !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.Account.timeZone: object expected");
+ message.timeZone = $root.google.type.TimeZone.fromObject(object.timeZone);
+ }
+ if (object.languageCode != null)
+ message.languageCode = String(object.languageCode);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Account message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.Account} message Account
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Account.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.accountId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.accountId = options.longs === String ? "0" : 0;
+ object.accountName = "";
+ object.adultContent = false;
+ object.testAccount = false;
+ object.timeZone = null;
+ object.languageCode = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.accountId != null && message.hasOwnProperty("accountId"))
+ if (typeof message.accountId === "number")
+ object.accountId = options.longs === String ? String(message.accountId) : message.accountId;
+ else
+ object.accountId = options.longs === String ? $util.Long.prototype.toString.call(message.accountId) : options.longs === Number ? new $util.LongBits(message.accountId.low >>> 0, message.accountId.high >>> 0).toNumber() : message.accountId;
+ if (message.accountName != null && message.hasOwnProperty("accountName"))
+ object.accountName = message.accountName;
+ if (message.adultContent != null && message.hasOwnProperty("adultContent"))
+ object.adultContent = message.adultContent;
+ if (message.testAccount != null && message.hasOwnProperty("testAccount"))
+ object.testAccount = message.testAccount;
+ if (message.timeZone != null && message.hasOwnProperty("timeZone"))
+ object.timeZone = $root.google.type.TimeZone.toObject(message.timeZone, options);
+ if (message.languageCode != null && message.hasOwnProperty("languageCode"))
+ object.languageCode = message.languageCode;
+ return object;
+ };
+
+ /**
+ * Converts this Account to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Account.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Account
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.Account
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Account.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.Account";
+ };
+
+ return Account;
+ })();
+
+ v1beta.GetAccountRequest = (function() {
+
+ /**
+ * Properties of a GetAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IGetAccountRequest
+ * @property {string|null} [name] GetAccountRequest name
+ */
+
+ /**
+ * Constructs a new GetAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a GetAccountRequest.
+ * @implements IGetAccountRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountRequest=} [properties] Properties to set
+ */
+ function GetAccountRequest(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]];
+ }
+
+ /**
+ * GetAccountRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @instance
+ */
+ GetAccountRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetAccountRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountRequest} GetAccountRequest instance
+ */
+ GetAccountRequest.create = function create(properties) {
+ return new GetAccountRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountRequest} message GetAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAccountRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetAccountRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetAccountRequest} message GetAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAccountRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetAccountRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountRequest} GetAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAccountRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.GetAccountRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetAccountRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountRequest} GetAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAccountRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetAccountRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetAccountRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.GetAccountRequest} GetAccountRequest
+ */
+ GetAccountRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.GetAccountRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.GetAccountRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetAccountRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.GetAccountRequest} message GetAccountRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetAccountRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetAccountRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetAccountRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetAccountRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.GetAccountRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetAccountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.GetAccountRequest";
+ };
+
+ return GetAccountRequest;
+ })();
+
+ v1beta.CreateAndConfigureAccountRequest = (function() {
+
+ /**
+ * Properties of a CreateAndConfigureAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface ICreateAndConfigureAccountRequest
+ * @property {google.shopping.merchant.accounts.v1beta.IAccount|null} [account] CreateAndConfigureAccountRequest account
+ * @property {Array.|null} [users] CreateAndConfigureAccountRequest users
+ * @property {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService|null} [acceptTermsOfService] CreateAndConfigureAccountRequest acceptTermsOfService
+ * @property {Array.|null} [service] CreateAndConfigureAccountRequest service
+ */
+
+ /**
+ * Constructs a new CreateAndConfigureAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a CreateAndConfigureAccountRequest.
+ * @implements ICreateAndConfigureAccountRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest=} [properties] Properties to set
+ */
+ function CreateAndConfigureAccountRequest(properties) {
+ this.users = [];
+ this.service = [];
+ 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]];
+ }
+
+ /**
+ * CreateAndConfigureAccountRequest account.
+ * @member {google.shopping.merchant.accounts.v1beta.IAccount|null|undefined} account
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @instance
+ */
+ CreateAndConfigureAccountRequest.prototype.account = null;
+
+ /**
+ * CreateAndConfigureAccountRequest users.
+ * @member {Array.} users
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @instance
+ */
+ CreateAndConfigureAccountRequest.prototype.users = $util.emptyArray;
+
+ /**
+ * CreateAndConfigureAccountRequest acceptTermsOfService.
+ * @member {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService|null|undefined} acceptTermsOfService
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @instance
+ */
+ CreateAndConfigureAccountRequest.prototype.acceptTermsOfService = null;
+
+ /**
+ * CreateAndConfigureAccountRequest service.
+ * @member {Array.} service
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @instance
+ */
+ CreateAndConfigureAccountRequest.prototype.service = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * CreateAndConfigureAccountRequest _acceptTermsOfService.
+ * @member {"acceptTermsOfService"|undefined} _acceptTermsOfService
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @instance
+ */
+ Object.defineProperty(CreateAndConfigureAccountRequest.prototype, "_acceptTermsOfService", {
+ get: $util.oneOfGetter($oneOfFields = ["acceptTermsOfService"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new CreateAndConfigureAccountRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest} CreateAndConfigureAccountRequest instance
+ */
+ CreateAndConfigureAccountRequest.create = function create(properties) {
+ return new CreateAndConfigureAccountRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateAndConfigureAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest} message CreateAndConfigureAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAndConfigureAccountRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.account != null && Object.hasOwnProperty.call(message, "account"))
+ $root.google.shopping.merchant.accounts.v1beta.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.users != null && message.users.length)
+ for (var i = 0; i < message.users.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.acceptTermsOfService != null && Object.hasOwnProperty.call(message, "acceptTermsOfService"))
+ $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.encode(message.acceptTermsOfService, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.service != null && message.service.length)
+ for (var i = 0; i < message.service.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.encode(message.service[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateAndConfigureAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateAndConfigureAccountRequest} message CreateAndConfigureAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAndConfigureAccountRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateAndConfigureAccountRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest} CreateAndConfigureAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAndConfigureAccountRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.account = $root.google.shopping.merchant.accounts.v1beta.Account.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.users && message.users.length))
+ message.users = [];
+ message.users.push($root.google.shopping.merchant.accounts.v1beta.CreateUserRequest.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.acceptTermsOfService = $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ if (!(message.service && message.service.length))
+ message.service = [];
+ message.service.push($root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateAndConfigureAccountRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest} CreateAndConfigureAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAndConfigureAccountRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateAndConfigureAccountRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateAndConfigureAccountRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.account != null && message.hasOwnProperty("account")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.Account.verify(message.account);
+ if (error)
+ return "account." + error;
+ }
+ if (message.users != null && message.hasOwnProperty("users")) {
+ if (!Array.isArray(message.users))
+ return "users: array expected";
+ for (var i = 0; i < message.users.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest.verify(message.users[i]);
+ if (error)
+ return "users." + error;
+ }
+ }
+ if (message.acceptTermsOfService != null && message.hasOwnProperty("acceptTermsOfService")) {
+ properties._acceptTermsOfService = 1;
+ {
+ var error = $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.verify(message.acceptTermsOfService);
+ if (error)
+ return "acceptTermsOfService." + error;
+ }
+ }
+ if (message.service != null && message.hasOwnProperty("service")) {
+ if (!Array.isArray(message.service))
+ return "service: array expected";
+ for (var i = 0; i < message.service.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.verify(message.service[i]);
+ if (error)
+ return "service." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateAndConfigureAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest} CreateAndConfigureAccountRequest
+ */
+ CreateAndConfigureAccountRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest();
+ if (object.account != null) {
+ if (typeof object.account !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.account: object expected");
+ message.account = $root.google.shopping.merchant.accounts.v1beta.Account.fromObject(object.account);
+ }
+ if (object.users) {
+ if (!Array.isArray(object.users))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.users: array expected");
+ message.users = [];
+ for (var i = 0; i < object.users.length; ++i) {
+ if (typeof object.users[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.users: object expected");
+ message.users[i] = $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest.fromObject(object.users[i]);
+ }
+ }
+ if (object.acceptTermsOfService != null) {
+ if (typeof object.acceptTermsOfService !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.acceptTermsOfService: object expected");
+ message.acceptTermsOfService = $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.fromObject(object.acceptTermsOfService);
+ }
+ if (object.service) {
+ if (!Array.isArray(object.service))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.service: array expected");
+ message.service = [];
+ for (var i = 0; i < object.service.length; ++i) {
+ if (typeof object.service[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.service: object expected");
+ message.service[i] = $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.fromObject(object.service[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateAndConfigureAccountRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest} message CreateAndConfigureAccountRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateAndConfigureAccountRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.users = [];
+ object.service = [];
+ }
+ if (options.defaults)
+ object.account = null;
+ if (message.account != null && message.hasOwnProperty("account"))
+ object.account = $root.google.shopping.merchant.accounts.v1beta.Account.toObject(message.account, options);
+ if (message.users && message.users.length) {
+ object.users = [];
+ for (var j = 0; j < message.users.length; ++j)
+ object.users[j] = $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest.toObject(message.users[j], options);
+ }
+ if (message.acceptTermsOfService != null && message.hasOwnProperty("acceptTermsOfService")) {
+ object.acceptTermsOfService = $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.toObject(message.acceptTermsOfService, options);
+ if (options.oneofs)
+ object._acceptTermsOfService = "acceptTermsOfService";
+ }
+ if (message.service && message.service.length) {
+ object.service = [];
+ for (var j = 0; j < message.service.length; ++j)
+ object.service[j] = $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.toObject(message.service[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CreateAndConfigureAccountRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateAndConfigureAccountRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateAndConfigureAccountRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateAndConfigureAccountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest";
+ };
+
+ CreateAndConfigureAccountRequest.AcceptTermsOfService = (function() {
+
+ /**
+ * Properties of an AcceptTermsOfService.
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @interface IAcceptTermsOfService
+ * @property {string|null} [name] AcceptTermsOfService name
+ * @property {string|null} [regionCode] AcceptTermsOfService regionCode
+ */
+
+ /**
+ * Constructs a new AcceptTermsOfService.
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @classdesc Represents an AcceptTermsOfService.
+ * @implements IAcceptTermsOfService
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService=} [properties] Properties to set
+ */
+ function AcceptTermsOfService(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]];
+ }
+
+ /**
+ * AcceptTermsOfService name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @instance
+ */
+ AcceptTermsOfService.prototype.name = "";
+
+ /**
+ * AcceptTermsOfService regionCode.
+ * @member {string} regionCode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @instance
+ */
+ AcceptTermsOfService.prototype.regionCode = "";
+
+ /**
+ * Creates a new AcceptTermsOfService instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService} AcceptTermsOfService instance
+ */
+ AcceptTermsOfService.create = function create(properties) {
+ return new AcceptTermsOfService(properties);
+ };
+
+ /**
+ * Encodes the specified AcceptTermsOfService message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService} message AcceptTermsOfService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AcceptTermsOfService.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.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.regionCode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AcceptTermsOfService message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAcceptTermsOfService} message AcceptTermsOfService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AcceptTermsOfService.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AcceptTermsOfService message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService} AcceptTermsOfService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AcceptTermsOfService.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.regionCode = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AcceptTermsOfService message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService} AcceptTermsOfService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AcceptTermsOfService.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AcceptTermsOfService message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AcceptTermsOfService.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.regionCode != null && message.hasOwnProperty("regionCode"))
+ if (!$util.isString(message.regionCode))
+ return "regionCode: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AcceptTermsOfService message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService} AcceptTermsOfService
+ */
+ AcceptTermsOfService.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.regionCode != null)
+ message.regionCode = String(object.regionCode);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AcceptTermsOfService message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService} message AcceptTermsOfService
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AcceptTermsOfService.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.regionCode = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
+ object.regionCode = message.regionCode;
+ return object;
+ };
+
+ /**
+ * Converts this AcceptTermsOfService to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AcceptTermsOfService.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AcceptTermsOfService
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AcceptTermsOfService.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService";
+ };
+
+ return AcceptTermsOfService;
+ })();
+
+ CreateAndConfigureAccountRequest.AddAccountService = (function() {
+
+ /**
+ * Properties of an AddAccountService.
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @interface IAddAccountService
+ * @property {google.protobuf.IEmpty|null} [accountAggregation] AddAccountService accountAggregation
+ * @property {string|null} [provider] AddAccountService provider
+ */
+
+ /**
+ * Constructs a new AddAccountService.
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
+ * @classdesc Represents an AddAccountService.
+ * @implements IAddAccountService
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService=} [properties] Properties to set
+ */
+ function AddAccountService(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]];
+ }
+
+ /**
+ * AddAccountService accountAggregation.
+ * @member {google.protobuf.IEmpty|null|undefined} accountAggregation
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @instance
+ */
+ AddAccountService.prototype.accountAggregation = null;
+
+ /**
+ * AddAccountService provider.
+ * @member {string|null|undefined} provider
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @instance
+ */
+ AddAccountService.prototype.provider = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * AddAccountService serviceType.
+ * @member {"accountAggregation"|undefined} serviceType
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @instance
+ */
+ Object.defineProperty(AddAccountService.prototype, "serviceType", {
+ get: $util.oneOfGetter($oneOfFields = ["accountAggregation"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * AddAccountService _provider.
+ * @member {"provider"|undefined} _provider
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @instance
+ */
+ Object.defineProperty(AddAccountService.prototype, "_provider", {
+ get: $util.oneOfGetter($oneOfFields = ["provider"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new AddAccountService instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService} AddAccountService instance
+ */
+ AddAccountService.create = function create(properties) {
+ return new AddAccountService(properties);
+ };
+
+ /**
+ * Encodes the specified AddAccountService message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService} message AddAccountService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AddAccountService.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.provider);
+ if (message.accountAggregation != null && Object.hasOwnProperty.call(message, "accountAggregation"))
+ $root.google.protobuf.Empty.encode(message.accountAggregation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AddAccountService message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.IAddAccountService} message AddAccountService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AddAccountService.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AddAccountService message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService} AddAccountService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AddAccountService.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.accountAggregation = $root.google.protobuf.Empty.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.provider = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AddAccountService message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService} AddAccountService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AddAccountService.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AddAccountService message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AddAccountService.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.accountAggregation != null && message.hasOwnProperty("accountAggregation")) {
+ properties.serviceType = 1;
+ {
+ var error = $root.google.protobuf.Empty.verify(message.accountAggregation);
+ if (error)
+ return "accountAggregation." + error;
+ }
+ }
+ if (message.provider != null && message.hasOwnProperty("provider")) {
+ properties._provider = 1;
+ if (!$util.isString(message.provider))
+ return "provider: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AddAccountService message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService} AddAccountService
+ */
+ AddAccountService.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService();
+ if (object.accountAggregation != null) {
+ if (typeof object.accountAggregation !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.accountAggregation: object expected");
+ message.accountAggregation = $root.google.protobuf.Empty.fromObject(object.accountAggregation);
+ }
+ if (object.provider != null)
+ message.provider = String(object.provider);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AddAccountService message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService} message AddAccountService
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AddAccountService.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.provider != null && message.hasOwnProperty("provider")) {
+ object.provider = message.provider;
+ if (options.oneofs)
+ object._provider = "provider";
+ }
+ if (message.accountAggregation != null && message.hasOwnProperty("accountAggregation")) {
+ object.accountAggregation = $root.google.protobuf.Empty.toObject(message.accountAggregation, options);
+ if (options.oneofs)
+ object.serviceType = "accountAggregation";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AddAccountService to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AddAccountService.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AddAccountService
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AddAccountService.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService";
+ };
+
+ return AddAccountService;
+ })();
+
+ return CreateAndConfigureAccountRequest;
+ })();
+
+ v1beta.DeleteAccountRequest = (function() {
+
+ /**
+ * Properties of a DeleteAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IDeleteAccountRequest
+ * @property {string|null} [name] DeleteAccountRequest name
+ */
+
+ /**
+ * Constructs a new DeleteAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a DeleteAccountRequest.
+ * @implements IDeleteAccountRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest=} [properties] Properties to set
+ */
+ function DeleteAccountRequest(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]];
+ }
+
+ /**
+ * DeleteAccountRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @instance
+ */
+ DeleteAccountRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteAccountRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteAccountRequest} DeleteAccountRequest instance
+ */
+ DeleteAccountRequest.create = function create(properties) {
+ return new DeleteAccountRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteAccountRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteAccountRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteAccountRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteAccountRequest} message DeleteAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteAccountRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteAccountRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteAccountRequest} DeleteAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteAccountRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteAccountRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteAccountRequest} DeleteAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteAccountRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteAccountRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteAccountRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteAccountRequest} DeleteAccountRequest
+ */
+ DeleteAccountRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteAccountRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.DeleteAccountRequest} message DeleteAccountRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteAccountRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteAccountRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteAccountRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteAccountRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteAccountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.DeleteAccountRequest";
+ };
+
+ return DeleteAccountRequest;
+ })();
+
+ v1beta.UpdateAccountRequest = (function() {
+
+ /**
+ * Properties of an UpdateAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IUpdateAccountRequest
+ * @property {google.shopping.merchant.accounts.v1beta.IAccount|null} [account] UpdateAccountRequest account
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAccountRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateAccountRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an UpdateAccountRequest.
+ * @implements IUpdateAccountRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest=} [properties] Properties to set
+ */
+ function UpdateAccountRequest(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]];
+ }
+
+ /**
+ * UpdateAccountRequest account.
+ * @member {google.shopping.merchant.accounts.v1beta.IAccount|null|undefined} account
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @instance
+ */
+ UpdateAccountRequest.prototype.account = null;
+
+ /**
+ * UpdateAccountRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @instance
+ */
+ UpdateAccountRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateAccountRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountRequest} UpdateAccountRequest instance
+ */
+ UpdateAccountRequest.create = function create(properties) {
+ return new UpdateAccountRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateAccountRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAccountRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.account != null && Object.hasOwnProperty.call(message, "account"))
+ $root.google.shopping.merchant.accounts.v1beta.Account.encode(message.account, 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateAccountRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateAccountRequest} message UpdateAccountRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAccountRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateAccountRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountRequest} UpdateAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAccountRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.account = $root.google.shopping.merchant.accounts.v1beta.Account.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateAccountRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountRequest} UpdateAccountRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAccountRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateAccountRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateAccountRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.account != null && message.hasOwnProperty("account")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.Account.verify(message.account);
+ if (error)
+ return "account." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateAccountRequest} UpdateAccountRequest
+ */
+ UpdateAccountRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest();
+ if (object.account != null) {
+ if (typeof object.account !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.account: object expected");
+ message.account = $root.google.shopping.merchant.accounts.v1beta.Account.fromObject(object.account);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateAccountRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.UpdateAccountRequest} message UpdateAccountRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateAccountRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.account = null;
+ object.updateMask = null;
+ }
+ if (message.account != null && message.hasOwnProperty("account"))
+ object.account = $root.google.shopping.merchant.accounts.v1beta.Account.toObject(message.account, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateAccountRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateAccountRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateAccountRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateAccountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.UpdateAccountRequest";
+ };
+
+ return UpdateAccountRequest;
+ })();
+
+ v1beta.ListAccountsRequest = (function() {
+
+ /**
+ * Properties of a ListAccountsRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListAccountsRequest
+ * @property {number|null} [pageSize] ListAccountsRequest pageSize
+ * @property {string|null} [pageToken] ListAccountsRequest pageToken
+ * @property {string|null} [filter] ListAccountsRequest filter
+ */
+
+ /**
+ * Constructs a new ListAccountsRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListAccountsRequest.
+ * @implements IListAccountsRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsRequest=} [properties] Properties to set
+ */
+ function ListAccountsRequest(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]];
+ }
+
+ /**
+ * ListAccountsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @instance
+ */
+ ListAccountsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListAccountsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @instance
+ */
+ ListAccountsRequest.prototype.pageToken = "";
+
+ /**
+ * ListAccountsRequest filter.
+ * @member {string} filter
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @instance
+ */
+ ListAccountsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListAccountsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsRequest} ListAccountsRequest instance
+ */
+ ListAccountsRequest.create = function create(properties) {
+ return new ListAccountsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListAccountsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsRequest} message ListAccountsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAccountsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsRequest} message ListAccountsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAccountsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsRequest} ListAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountsRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 2: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 3: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAccountsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsRequest} ListAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAccountsRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAccountsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAccountsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsRequest} ListAccountsRequest
+ */
+ ListAccountsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListAccountsRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountsRequest();
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAccountsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountsRequest} message ListAccountsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAccountsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListAccountsRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAccountsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAccountsRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAccountsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListAccountsRequest";
+ };
+
+ return ListAccountsRequest;
+ })();
+
+ v1beta.ListAccountsResponse = (function() {
+
+ /**
+ * Properties of a ListAccountsResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListAccountsResponse
+ * @property {Array.|null} [accounts] ListAccountsResponse accounts
+ * @property {string|null} [nextPageToken] ListAccountsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListAccountsResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListAccountsResponse.
+ * @implements IListAccountsResponse
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsResponse=} [properties] Properties to set
+ */
+ function ListAccountsResponse(properties) {
+ this.accounts = [];
+ 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]];
+ }
+
+ /**
+ * ListAccountsResponse accounts.
+ * @member {Array.} accounts
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @instance
+ */
+ ListAccountsResponse.prototype.accounts = $util.emptyArray;
+
+ /**
+ * ListAccountsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @instance
+ */
+ ListAccountsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListAccountsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsResponse=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsResponse} ListAccountsResponse instance
+ */
+ ListAccountsResponse.create = function create(properties) {
+ return new ListAccountsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListAccountsResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsResponse} message ListAccountsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.accounts != null && message.accounts.length)
+ for (var i = 0; i < message.accounts.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.Account.encode(message.accounts[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 ListAccountsResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListAccountsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListAccountsResponse} message ListAccountsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAccountsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAccountsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsResponse} ListAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountsResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.accounts && message.accounts.length))
+ message.accounts = [];
+ message.accounts.push($root.google.shopping.merchant.accounts.v1beta.Account.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAccountsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsResponse} ListAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAccountsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAccountsResponse message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAccountsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.accounts != null && message.hasOwnProperty("accounts")) {
+ if (!Array.isArray(message.accounts))
+ return "accounts: array expected";
+ for (var i = 0; i < message.accounts.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.Account.verify(message.accounts[i]);
+ if (error)
+ return "accounts." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAccountsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListAccountsResponse} ListAccountsResponse
+ */
+ ListAccountsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListAccountsResponse)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListAccountsResponse();
+ if (object.accounts) {
+ if (!Array.isArray(object.accounts))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListAccountsResponse.accounts: array expected");
+ message.accounts = [];
+ for (var i = 0; i < object.accounts.length; ++i) {
+ if (typeof object.accounts[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListAccountsResponse.accounts: object expected");
+ message.accounts[i] = $root.google.shopping.merchant.accounts.v1beta.Account.fromObject(object.accounts[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAccountsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListAccountsResponse} message ListAccountsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAccountsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.accounts = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.accounts && message.accounts.length) {
+ object.accounts = [];
+ for (var j = 0; j < message.accounts.length; ++j)
+ object.accounts[j] = $root.google.shopping.merchant.accounts.v1beta.Account.toObject(message.accounts[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAccountsResponse to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAccountsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAccountsResponse
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListAccountsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAccountsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListAccountsResponse";
+ };
+
+ return ListAccountsResponse;
+ })();
+
+ v1beta.ListSubAccountsRequest = (function() {
+
+ /**
+ * Properties of a ListSubAccountsRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListSubAccountsRequest
+ * @property {string|null} [provider] ListSubAccountsRequest provider
+ * @property {number|null} [pageSize] ListSubAccountsRequest pageSize
+ * @property {string|null} [pageToken] ListSubAccountsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListSubAccountsRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListSubAccountsRequest.
+ * @implements IListSubAccountsRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest=} [properties] Properties to set
+ */
+ function ListSubAccountsRequest(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]];
+ }
+
+ /**
+ * ListSubAccountsRequest provider.
+ * @member {string} provider
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @instance
+ */
+ ListSubAccountsRequest.prototype.provider = "";
+
+ /**
+ * ListSubAccountsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @instance
+ */
+ ListSubAccountsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListSubAccountsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @instance
+ */
+ ListSubAccountsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListSubAccountsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest} ListSubAccountsRequest instance
+ */
+ ListSubAccountsRequest.create = function create(properties) {
+ return new ListSubAccountsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListSubAccountsRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest} message ListSubAccountsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubAccountsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.provider);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListSubAccountsRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsRequest} message ListSubAccountsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubAccountsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSubAccountsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest} ListSubAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubAccountsRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.provider = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListSubAccountsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest} ListSubAccountsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubAccountsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSubAccountsRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSubAccountsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.provider != null && message.hasOwnProperty("provider"))
+ if (!$util.isString(message.provider))
+ return "provider: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListSubAccountsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest} ListSubAccountsRequest
+ */
+ ListSubAccountsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest();
+ if (object.provider != null)
+ message.provider = String(object.provider);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListSubAccountsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest} message ListSubAccountsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSubAccountsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.provider = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.provider != null && message.hasOwnProperty("provider"))
+ object.provider = message.provider;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListSubAccountsRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSubAccountsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSubAccountsRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSubAccountsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest";
+ };
+
+ return ListSubAccountsRequest;
+ })();
+
+ v1beta.ListSubAccountsResponse = (function() {
+
+ /**
+ * Properties of a ListSubAccountsResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListSubAccountsResponse
+ * @property {Array.|null} [accounts] ListSubAccountsResponse accounts
+ * @property {string|null} [nextPageToken] ListSubAccountsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListSubAccountsResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListSubAccountsResponse.
+ * @implements IListSubAccountsResponse
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse=} [properties] Properties to set
+ */
+ function ListSubAccountsResponse(properties) {
+ this.accounts = [];
+ 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]];
+ }
+
+ /**
+ * ListSubAccountsResponse accounts.
+ * @member {Array.} accounts
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @instance
+ */
+ ListSubAccountsResponse.prototype.accounts = $util.emptyArray;
+
+ /**
+ * ListSubAccountsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @instance
+ */
+ ListSubAccountsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListSubAccountsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse} ListSubAccountsResponse instance
+ */
+ ListSubAccountsResponse.create = function create(properties) {
+ return new ListSubAccountsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListSubAccountsResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse} message ListSubAccountsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubAccountsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.accounts != null && message.accounts.length)
+ for (var i = 0; i < message.accounts.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.Account.encode(message.accounts[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 ListSubAccountsResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListSubAccountsResponse} message ListSubAccountsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubAccountsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSubAccountsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse} ListSubAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubAccountsResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.accounts && message.accounts.length))
+ message.accounts = [];
+ message.accounts.push($root.google.shopping.merchant.accounts.v1beta.Account.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListSubAccountsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse} ListSubAccountsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubAccountsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSubAccountsResponse message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSubAccountsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.accounts != null && message.hasOwnProperty("accounts")) {
+ if (!Array.isArray(message.accounts))
+ return "accounts: array expected";
+ for (var i = 0; i < message.accounts.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.Account.verify(message.accounts[i]);
+ if (error)
+ return "accounts." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListSubAccountsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse} ListSubAccountsResponse
+ */
+ ListSubAccountsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse();
+ if (object.accounts) {
+ if (!Array.isArray(object.accounts))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse.accounts: array expected");
+ message.accounts = [];
+ for (var i = 0; i < object.accounts.length; ++i) {
+ if (typeof object.accounts[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse.accounts: object expected");
+ message.accounts[i] = $root.google.shopping.merchant.accounts.v1beta.Account.fromObject(object.accounts[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListSubAccountsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse} message ListSubAccountsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSubAccountsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.accounts = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.accounts && message.accounts.length) {
+ object.accounts = [];
+ for (var j = 0; j < message.accounts.length; ++j)
+ object.accounts[j] = $root.google.shopping.merchant.accounts.v1beta.Account.toObject(message.accounts[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListSubAccountsResponse to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSubAccountsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSubAccountsResponse
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSubAccountsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse";
+ };
+
+ return ListSubAccountsResponse;
+ })();
+
+ v1beta.UserService = (function() {
+
+ /**
+ * Constructs a new UserService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a UserService
+ * @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 UserService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (UserService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = UserService;
+
+ /**
+ * Creates new UserService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @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 {UserService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ UserService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|getUser}.
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @typedef GetUserCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.User} [response] User
+ */
+
+ /**
+ * Calls GetUser.
+ * @function getUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetUserRequest} request GetUserRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.UserService.GetUserCallback} callback Node-style callback called with the error, if any, and User
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(UserService.prototype.getUser = function getUser(request, callback) {
+ return this.rpcCall(getUser, $root.google.shopping.merchant.accounts.v1beta.GetUserRequest, $root.google.shopping.merchant.accounts.v1beta.User, request, callback);
+ }, "name", { value: "GetUser" });
+
+ /**
+ * Calls GetUser.
+ * @function getUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetUserRequest} request GetUserRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|createUser}.
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @typedef CreateUserCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.User} [response] User
+ */
+
+ /**
+ * Calls CreateUser.
+ * @function createUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateUserRequest} request CreateUserRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.UserService.CreateUserCallback} callback Node-style callback called with the error, if any, and User
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(UserService.prototype.createUser = function createUser(request, callback) {
+ return this.rpcCall(createUser, $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest, $root.google.shopping.merchant.accounts.v1beta.User, request, callback);
+ }, "name", { value: "CreateUser" });
+
+ /**
+ * Calls CreateUser.
+ * @function createUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateUserRequest} request CreateUserRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|deleteUser}.
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @typedef DeleteUserCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteUser.
+ * @function deleteUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteUserRequest} request DeleteUserRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.UserService.DeleteUserCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(UserService.prototype.deleteUser = function deleteUser(request, callback) {
+ return this.rpcCall(deleteUser, $root.google.shopping.merchant.accounts.v1beta.DeleteUserRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteUser" });
+
+ /**
+ * Calls DeleteUser.
+ * @function deleteUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteUserRequest} request DeleteUserRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|updateUser}.
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @typedef UpdateUserCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.User} [response] User
+ */
+
+ /**
+ * Calls UpdateUser.
+ * @function updateUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateUserRequest} request UpdateUserRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.UserService.UpdateUserCallback} callback Node-style callback called with the error, if any, and User
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(UserService.prototype.updateUser = function updateUser(request, callback) {
+ return this.rpcCall(updateUser, $root.google.shopping.merchant.accounts.v1beta.UpdateUserRequest, $root.google.shopping.merchant.accounts.v1beta.User, request, callback);
+ }, "name", { value: "UpdateUser" });
+
+ /**
+ * Calls UpdateUser.
+ * @function updateUser
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateUserRequest} request UpdateUserRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.UserService|listUsers}.
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @typedef ListUsersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.ListUsersResponse} [response] ListUsersResponse
+ */
+
+ /**
+ * Calls ListUsers.
+ * @function listUsers
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersRequest} request ListUsersRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.UserService.ListUsersCallback} callback Node-style callback called with the error, if any, and ListUsersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(UserService.prototype.listUsers = function listUsers(request, callback) {
+ return this.rpcCall(listUsers, $root.google.shopping.merchant.accounts.v1beta.ListUsersRequest, $root.google.shopping.merchant.accounts.v1beta.ListUsersResponse, request, callback);
+ }, "name", { value: "ListUsers" });
+
+ /**
+ * Calls ListUsers.
+ * @function listUsers
+ * @memberof google.shopping.merchant.accounts.v1beta.UserService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersRequest} request ListUsersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return UserService;
+ })();
+
+ v1beta.User = (function() {
+
+ /**
+ * Properties of a User.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IUser
+ * @property {string|null} [name] User name
+ * @property {google.shopping.merchant.accounts.v1beta.User.State|null} [state] User state
+ * @property {Array.|null} [accessRights] User accessRights
+ */
+
+ /**
+ * Constructs a new User.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a User.
+ * @implements IUser
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IUser=} [properties] Properties to set
+ */
+ function User(properties) {
+ this.accessRights = [];
+ 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]];
+ }
+
+ /**
+ * User name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @instance
+ */
+ User.prototype.name = "";
+
+ /**
+ * User state.
+ * @member {google.shopping.merchant.accounts.v1beta.User.State} state
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @instance
+ */
+ User.prototype.state = 0;
+
+ /**
+ * User accessRights.
+ * @member {Array.} accessRights
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @instance
+ */
+ User.prototype.accessRights = $util.emptyArray;
+
+ /**
+ * Creates a new User instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUser=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.User} User instance
+ */
+ User.create = function create(properties) {
+ return new User(properties);
+ };
+
+ /**
+ * Encodes the specified User message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.User.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUser} message User message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ User.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.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state);
+ if (message.accessRights != null && message.accessRights.length) {
+ writer.uint32(/* id 4, wireType 2 =*/34).fork();
+ for (var i = 0; i < message.accessRights.length; ++i)
+ writer.int32(message.accessRights[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified User message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.User.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUser} message User message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ User.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a User message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.User} User
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ User.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.User();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.state = reader.int32();
+ break;
+ }
+ case 4: {
+ if (!(message.accessRights && message.accessRights.length))
+ message.accessRights = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.accessRights.push(reader.int32());
+ } else
+ message.accessRights.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a User message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.User} User
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ User.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a User message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ User.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.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.accessRights != null && message.hasOwnProperty("accessRights")) {
+ if (!Array.isArray(message.accessRights))
+ return "accessRights: array expected";
+ for (var i = 0; i < message.accessRights.length; ++i)
+ switch (message.accessRights[i]) {
+ default:
+ return "accessRights: enum value[] expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a User message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.User} User
+ */
+ User.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.User)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.User();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "VERIFIED":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ if (object.accessRights) {
+ if (!Array.isArray(object.accessRights))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.User.accessRights: array expected");
+ message.accessRights = [];
+ for (var i = 0; i < object.accessRights.length; ++i)
+ switch (object.accessRights[i]) {
+ default:
+ if (typeof object.accessRights[i] === "number") {
+ message.accessRights[i] = object.accessRights[i];
+ break;
+ }
+ case "ACCESS_RIGHT_UNSPECIFIED":
+ case 0:
+ message.accessRights[i] = 0;
+ break;
+ case "STANDARD":
+ case 1:
+ message.accessRights[i] = 1;
+ break;
+ case "ADMIN":
+ case 2:
+ message.accessRights[i] = 2;
+ break;
+ case "PERFORMANCE_REPORTING":
+ case 3:
+ message.accessRights[i] = 3;
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a User message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.User} message User
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ User.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.accessRights = [];
+ if (options.defaults) {
+ object.name = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.User.State[message.state] === undefined ? message.state : $root.google.shopping.merchant.accounts.v1beta.User.State[message.state] : message.state;
+ if (message.accessRights && message.accessRights.length) {
+ object.accessRights = [];
+ for (var j = 0; j < message.accessRights.length; ++j)
+ object.accessRights[j] = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.AccessRight[message.accessRights[j]] === undefined ? message.accessRights[j] : $root.google.shopping.merchant.accounts.v1beta.AccessRight[message.accessRights[j]] : message.accessRights[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this User to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ User.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for User
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.User
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ User.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.User";
+ };
+
+ /**
+ * State enum.
+ * @name google.shopping.merchant.accounts.v1beta.User.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} VERIFIED=2 VERIFIED value
+ */
+ User.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "VERIFIED"] = 2;
+ return values;
+ })();
+
+ return User;
+ })();
+
+ v1beta.GetUserRequest = (function() {
+
+ /**
+ * Properties of a GetUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IGetUserRequest
+ * @property {string|null} [name] GetUserRequest name
+ */
+
+ /**
+ * Constructs a new GetUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a GetUserRequest.
+ * @implements IGetUserRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IGetUserRequest=} [properties] Properties to set
+ */
+ function GetUserRequest(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]];
+ }
+
+ /**
+ * GetUserRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @instance
+ */
+ GetUserRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetUserRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetUserRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.GetUserRequest} GetUserRequest instance
+ */
+ GetUserRequest.create = function create(properties) {
+ return new GetUserRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetUserRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetUserRequest} message GetUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetUserRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetUserRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetUserRequest} message GetUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetUserRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.GetUserRequest} GetUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetUserRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.GetUserRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetUserRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.GetUserRequest} GetUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetUserRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetUserRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetUserRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.GetUserRequest} GetUserRequest
+ */
+ GetUserRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.GetUserRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.GetUserRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetUserRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.GetUserRequest} message GetUserRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetUserRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetUserRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetUserRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetUserRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.GetUserRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.GetUserRequest";
+ };
+
+ return GetUserRequest;
+ })();
+
+ v1beta.CreateUserRequest = (function() {
+
+ /**
+ * Properties of a CreateUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface ICreateUserRequest
+ * @property {string|null} [parent] CreateUserRequest parent
+ * @property {string|null} [userId] CreateUserRequest userId
+ * @property {google.shopping.merchant.accounts.v1beta.IUser|null} [user] CreateUserRequest user
+ */
+
+ /**
+ * Constructs a new CreateUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a CreateUserRequest.
+ * @implements ICreateUserRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateUserRequest=} [properties] Properties to set
+ */
+ function CreateUserRequest(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]];
+ }
+
+ /**
+ * CreateUserRequest parent.
+ * @member {string} parent
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @instance
+ */
+ CreateUserRequest.prototype.parent = "";
+
+ /**
+ * CreateUserRequest userId.
+ * @member {string} userId
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @instance
+ */
+ CreateUserRequest.prototype.userId = "";
+
+ /**
+ * CreateUserRequest user.
+ * @member {google.shopping.merchant.accounts.v1beta.IUser|null|undefined} user
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @instance
+ */
+ CreateUserRequest.prototype.user = null;
+
+ /**
+ * Creates a new CreateUserRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateUserRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateUserRequest} CreateUserRequest instance
+ */
+ CreateUserRequest.create = function create(properties) {
+ return new CreateUserRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateUserRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateUserRequest} message CreateUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateUserRequest.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.userId != null && Object.hasOwnProperty.call(message, "userId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
+ $root.google.shopping.merchant.accounts.v1beta.User.encode(message.user, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CreateUserRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICreateUserRequest} message CreateUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateUserRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateUserRequest} CreateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateUserRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.userId = reader.string();
+ break;
+ }
+ case 3: {
+ message.user = $root.google.shopping.merchant.accounts.v1beta.User.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateUserRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateUserRequest} CreateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateUserRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateUserRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateUserRequest.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.userId != null && message.hasOwnProperty("userId"))
+ if (!$util.isString(message.userId))
+ return "userId: string expected";
+ if (message.user != null && message.hasOwnProperty("user")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.User.verify(message.user);
+ if (error)
+ return "user." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.CreateUserRequest} CreateUserRequest
+ */
+ CreateUserRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.CreateUserRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.userId != null)
+ message.userId = String(object.userId);
+ if (object.user != null) {
+ if (typeof object.user !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CreateUserRequest.user: object expected");
+ message.user = $root.google.shopping.merchant.accounts.v1beta.User.fromObject(object.user);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateUserRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CreateUserRequest} message CreateUserRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateUserRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.userId = "";
+ object.user = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.userId != null && message.hasOwnProperty("userId"))
+ object.userId = message.userId;
+ if (message.user != null && message.hasOwnProperty("user"))
+ object.user = $root.google.shopping.merchant.accounts.v1beta.User.toObject(message.user, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateUserRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateUserRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateUserRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.CreateUserRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.CreateUserRequest";
+ };
+
+ return CreateUserRequest;
+ })();
+
+ v1beta.DeleteUserRequest = (function() {
+
+ /**
+ * Properties of a DeleteUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IDeleteUserRequest
+ * @property {string|null} [name] DeleteUserRequest name
+ */
+
+ /**
+ * Constructs a new DeleteUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a DeleteUserRequest.
+ * @implements IDeleteUserRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteUserRequest=} [properties] Properties to set
+ */
+ function DeleteUserRequest(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]];
+ }
+
+ /**
+ * DeleteUserRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @instance
+ */
+ DeleteUserRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteUserRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteUserRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteUserRequest} DeleteUserRequest instance
+ */
+ DeleteUserRequest.create = function create(properties) {
+ return new DeleteUserRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteUserRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteUserRequest} message DeleteUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteUserRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.DeleteUserRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IDeleteUserRequest} message DeleteUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteUserRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteUserRequest} DeleteUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteUserRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.DeleteUserRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteUserRequest} DeleteUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteUserRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteUserRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteUserRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.DeleteUserRequest} DeleteUserRequest
+ */
+ DeleteUserRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.DeleteUserRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.DeleteUserRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteUserRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.DeleteUserRequest} message DeleteUserRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteUserRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteUserRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteUserRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteUserRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.DeleteUserRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.DeleteUserRequest";
+ };
+
+ return DeleteUserRequest;
+ })();
+
+ v1beta.UpdateUserRequest = (function() {
+
+ /**
+ * Properties of an UpdateUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IUpdateUserRequest
+ * @property {google.shopping.merchant.accounts.v1beta.IUser|null} [user] UpdateUserRequest user
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateUserRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateUserRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an UpdateUserRequest.
+ * @implements IUpdateUserRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateUserRequest=} [properties] Properties to set
+ */
+ function UpdateUserRequest(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]];
+ }
+
+ /**
+ * UpdateUserRequest user.
+ * @member {google.shopping.merchant.accounts.v1beta.IUser|null|undefined} user
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @instance
+ */
+ UpdateUserRequest.prototype.user = null;
+
+ /**
+ * UpdateUserRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @instance
+ */
+ UpdateUserRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateUserRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateUserRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateUserRequest} UpdateUserRequest instance
+ */
+ UpdateUserRequest.create = function create(properties) {
+ return new UpdateUserRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateUserRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateUserRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateUserRequest} message UpdateUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateUserRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
+ $root.google.shopping.merchant.accounts.v1beta.User.encode(message.user, 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateUserRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateUserRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateUserRequest} message UpdateUserRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateUserRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateUserRequest} UpdateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateUserRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.UpdateUserRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.user = $root.google.shopping.merchant.accounts.v1beta.User.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateUserRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateUserRequest} UpdateUserRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateUserRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateUserRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateUserRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.user != null && message.hasOwnProperty("user")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.User.verify(message.user);
+ if (error)
+ return "user." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateUserRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateUserRequest} UpdateUserRequest
+ */
+ UpdateUserRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.UpdateUserRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.UpdateUserRequest();
+ if (object.user != null) {
+ if (typeof object.user !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateUserRequest.user: object expected");
+ message.user = $root.google.shopping.merchant.accounts.v1beta.User.fromObject(object.user);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateUserRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateUserRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.UpdateUserRequest} message UpdateUserRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateUserRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.user = null;
+ object.updateMask = null;
+ }
+ if (message.user != null && message.hasOwnProperty("user"))
+ object.user = $root.google.shopping.merchant.accounts.v1beta.User.toObject(message.user, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateUserRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateUserRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateUserRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateUserRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.UpdateUserRequest";
+ };
+
+ return UpdateUserRequest;
+ })();
+
+ v1beta.ListUsersRequest = (function() {
+
+ /**
+ * Properties of a ListUsersRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListUsersRequest
+ * @property {string|null} [parent] ListUsersRequest parent
+ * @property {number|null} [pageSize] ListUsersRequest pageSize
+ * @property {string|null} [pageToken] ListUsersRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListUsersRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListUsersRequest.
+ * @implements IListUsersRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersRequest=} [properties] Properties to set
+ */
+ function ListUsersRequest(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]];
+ }
+
+ /**
+ * ListUsersRequest parent.
+ * @member {string} parent
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @instance
+ */
+ ListUsersRequest.prototype.parent = "";
+
+ /**
+ * ListUsersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @instance
+ */
+ ListUsersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListUsersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @instance
+ */
+ ListUsersRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListUsersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersRequest} ListUsersRequest instance
+ */
+ ListUsersRequest.create = function create(properties) {
+ return new ListUsersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListUsersRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersRequest} message ListUsersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUsersRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListUsersRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersRequest} message ListUsersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUsersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListUsersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersRequest} ListUsersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUsersRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListUsersRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListUsersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersRequest} ListUsersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUsersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListUsersRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListUsersRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListUsersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersRequest} ListUsersRequest
+ */
+ ListUsersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListUsersRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListUsersRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListUsersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListUsersRequest} message ListUsersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListUsersRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ 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;
+ return object;
+ };
+
+ /**
+ * Converts this ListUsersRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListUsersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListUsersRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListUsersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListUsersRequest";
+ };
+
+ return ListUsersRequest;
+ })();
+
+ v1beta.ListUsersResponse = (function() {
+
+ /**
+ * Properties of a ListUsersResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IListUsersResponse
+ * @property {Array.|null} [users] ListUsersResponse users
+ * @property {string|null} [nextPageToken] ListUsersResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListUsersResponse.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a ListUsersResponse.
+ * @implements IListUsersResponse
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersResponse=} [properties] Properties to set
+ */
+ function ListUsersResponse(properties) {
+ this.users = [];
+ 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]];
+ }
+
+ /**
+ * ListUsersResponse users.
+ * @member {Array.} users
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @instance
+ */
+ ListUsersResponse.prototype.users = $util.emptyArray;
+
+ /**
+ * ListUsersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @instance
+ */
+ ListUsersResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListUsersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersResponse=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersResponse} ListUsersResponse instance
+ */
+ ListUsersResponse.create = function create(properties) {
+ return new ListUsersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListUsersResponse message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersResponse} message ListUsersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUsersResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.users != null && message.users.length)
+ for (var i = 0; i < message.users.length; ++i)
+ $root.google.shopping.merchant.accounts.v1beta.User.encode(message.users[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 ListUsersResponse message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.ListUsersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IListUsersResponse} message ListUsersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUsersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListUsersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersResponse} ListUsersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUsersResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.ListUsersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.users && message.users.length))
+ message.users = [];
+ message.users.push($root.google.shopping.merchant.accounts.v1beta.User.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListUsersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersResponse} ListUsersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUsersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListUsersResponse message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListUsersResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.users != null && message.hasOwnProperty("users")) {
+ if (!Array.isArray(message.users))
+ return "users: array expected";
+ for (var i = 0; i < message.users.length; ++i) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.User.verify(message.users[i]);
+ if (error)
+ return "users." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListUsersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.ListUsersResponse} ListUsersResponse
+ */
+ ListUsersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.ListUsersResponse)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.ListUsersResponse();
+ if (object.users) {
+ if (!Array.isArray(object.users))
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListUsersResponse.users: array expected");
+ message.users = [];
+ for (var i = 0; i < object.users.length; ++i) {
+ if (typeof object.users[i] !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.ListUsersResponse.users: object expected");
+ message.users[i] = $root.google.shopping.merchant.accounts.v1beta.User.fromObject(object.users[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListUsersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ListUsersResponse} message ListUsersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListUsersResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.users = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.users && message.users.length) {
+ object.users = [];
+ for (var j = 0; j < message.users.length; ++j)
+ object.users[j] = $root.google.shopping.merchant.accounts.v1beta.User.toObject(message.users[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListUsersResponse to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListUsersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListUsersResponse
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.ListUsersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListUsersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.ListUsersResponse";
+ };
+
+ return ListUsersResponse;
+ })();
+
+ v1beta.BusinessIdentityService = (function() {
+
+ /**
+ * Constructs a new BusinessIdentityService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a BusinessIdentityService
+ * @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 BusinessIdentityService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (BusinessIdentityService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = BusinessIdentityService;
+
+ /**
+ * Creates new BusinessIdentityService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentityService
+ * @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 {BusinessIdentityService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ BusinessIdentityService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessIdentityService|getBusinessIdentity}.
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentityService
+ * @typedef GetBusinessIdentityCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity} [response] BusinessIdentity
+ */
+
+ /**
+ * Calls GetBusinessIdentity.
+ * @function getBusinessIdentity
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentityService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest} request GetBusinessIdentityRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentityService.GetBusinessIdentityCallback} callback Node-style callback called with the error, if any, and BusinessIdentity
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(BusinessIdentityService.prototype.getBusinessIdentity = function getBusinessIdentity(request, callback) {
+ return this.rpcCall(getBusinessIdentity, $root.google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest, $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity, request, callback);
+ }, "name", { value: "GetBusinessIdentity" });
+
+ /**
+ * Calls GetBusinessIdentity.
+ * @function getBusinessIdentity
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentityService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest} request GetBusinessIdentityRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessIdentityService|updateBusinessIdentity}.
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentityService
+ * @typedef UpdateBusinessIdentityCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity} [response] BusinessIdentity
+ */
+
+ /**
+ * Calls UpdateBusinessIdentity.
+ * @function updateBusinessIdentity
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentityService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest} request UpdateBusinessIdentityRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentityService.UpdateBusinessIdentityCallback} callback Node-style callback called with the error, if any, and BusinessIdentity
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(BusinessIdentityService.prototype.updateBusinessIdentity = function updateBusinessIdentity(request, callback) {
+ return this.rpcCall(updateBusinessIdentity, $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest, $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity, request, callback);
+ }, "name", { value: "UpdateBusinessIdentity" });
+
+ /**
+ * Calls UpdateBusinessIdentity.
+ * @function updateBusinessIdentity
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentityService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest} request UpdateBusinessIdentityRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return BusinessIdentityService;
+ })();
+
+ v1beta.BusinessIdentity = (function() {
+
+ /**
+ * Properties of a BusinessIdentity.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IBusinessIdentity
+ * @property {string|null} [name] BusinessIdentity name
+ * @property {google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent|null} [promotionsConsent] BusinessIdentity promotionsConsent
+ * @property {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null} [blackOwned] BusinessIdentity blackOwned
+ * @property {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null} [womenOwned] BusinessIdentity womenOwned
+ * @property {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null} [veteranOwned] BusinessIdentity veteranOwned
+ * @property {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null} [latinoOwned] BusinessIdentity latinoOwned
+ * @property {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null} [smallBusiness] BusinessIdentity smallBusiness
+ */
+
+ /**
+ * Constructs a new BusinessIdentity.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a BusinessIdentity.
+ * @implements IBusinessIdentity
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessIdentity=} [properties] Properties to set
+ */
+ function BusinessIdentity(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]];
+ }
+
+ /**
+ * BusinessIdentity name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ */
+ BusinessIdentity.prototype.name = "";
+
+ /**
+ * BusinessIdentity promotionsConsent.
+ * @member {google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent} promotionsConsent
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ */
+ BusinessIdentity.prototype.promotionsConsent = 0;
+
+ /**
+ * BusinessIdentity blackOwned.
+ * @member {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null|undefined} blackOwned
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ */
+ BusinessIdentity.prototype.blackOwned = null;
+
+ /**
+ * BusinessIdentity womenOwned.
+ * @member {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null|undefined} womenOwned
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ */
+ BusinessIdentity.prototype.womenOwned = null;
+
+ /**
+ * BusinessIdentity veteranOwned.
+ * @member {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null|undefined} veteranOwned
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ */
+ BusinessIdentity.prototype.veteranOwned = null;
+
+ /**
+ * BusinessIdentity latinoOwned.
+ * @member {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null|undefined} latinoOwned
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ */
+ BusinessIdentity.prototype.latinoOwned = null;
+
+ /**
+ * BusinessIdentity smallBusiness.
+ * @member {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute|null|undefined} smallBusiness
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ */
+ BusinessIdentity.prototype.smallBusiness = null;
+
+ /**
+ * Creates a new BusinessIdentity instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessIdentity=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity} BusinessIdentity instance
+ */
+ BusinessIdentity.create = function create(properties) {
+ return new BusinessIdentity(properties);
+ };
+
+ /**
+ * Encodes the specified BusinessIdentity message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessIdentity} message BusinessIdentity message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BusinessIdentity.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.promotionsConsent != null && Object.hasOwnProperty.call(message, "promotionsConsent"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.promotionsConsent);
+ if (message.blackOwned != null && Object.hasOwnProperty.call(message, "blackOwned"))
+ $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.encode(message.blackOwned, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.womenOwned != null && Object.hasOwnProperty.call(message, "womenOwned"))
+ $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.encode(message.womenOwned, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.veteranOwned != null && Object.hasOwnProperty.call(message, "veteranOwned"))
+ $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.encode(message.veteranOwned, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.latinoOwned != null && Object.hasOwnProperty.call(message, "latinoOwned"))
+ $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.encode(message.latinoOwned, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.smallBusiness != null && Object.hasOwnProperty.call(message, "smallBusiness"))
+ $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.encode(message.smallBusiness, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BusinessIdentity message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessIdentity} message BusinessIdentity message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BusinessIdentity.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BusinessIdentity message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity} BusinessIdentity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BusinessIdentity.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.promotionsConsent = reader.int32();
+ break;
+ }
+ case 3: {
+ message.blackOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.womenOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.veteranOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.latinoOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.smallBusiness = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BusinessIdentity message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity} BusinessIdentity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BusinessIdentity.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BusinessIdentity message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BusinessIdentity.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.promotionsConsent != null && message.hasOwnProperty("promotionsConsent"))
+ switch (message.promotionsConsent) {
+ default:
+ return "promotionsConsent: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.blackOwned != null && message.hasOwnProperty("blackOwned")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify(message.blackOwned);
+ if (error)
+ return "blackOwned." + error;
+ }
+ if (message.womenOwned != null && message.hasOwnProperty("womenOwned")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify(message.womenOwned);
+ if (error)
+ return "womenOwned." + error;
+ }
+ if (message.veteranOwned != null && message.hasOwnProperty("veteranOwned")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify(message.veteranOwned);
+ if (error)
+ return "veteranOwned." + error;
+ }
+ if (message.latinoOwned != null && message.hasOwnProperty("latinoOwned")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify(message.latinoOwned);
+ if (error)
+ return "latinoOwned." + error;
+ }
+ if (message.smallBusiness != null && message.hasOwnProperty("smallBusiness")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify(message.smallBusiness);
+ if (error)
+ return "smallBusiness." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BusinessIdentity message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity} BusinessIdentity
+ */
+ BusinessIdentity.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.promotionsConsent) {
+ default:
+ if (typeof object.promotionsConsent === "number") {
+ message.promotionsConsent = object.promotionsConsent;
+ break;
+ }
+ break;
+ case "PROMOTIONS_CONSENT_UNSPECIFIED":
+ case 0:
+ message.promotionsConsent = 0;
+ break;
+ case "PROMOTIONS_CONSENT_GIVEN":
+ case 1:
+ message.promotionsConsent = 1;
+ break;
+ case "PROMOTIONS_CONSENT_DENIED":
+ case 2:
+ message.promotionsConsent = 2;
+ break;
+ }
+ if (object.blackOwned != null) {
+ if (typeof object.blackOwned !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessIdentity.blackOwned: object expected");
+ message.blackOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.fromObject(object.blackOwned);
+ }
+ if (object.womenOwned != null) {
+ if (typeof object.womenOwned !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessIdentity.womenOwned: object expected");
+ message.womenOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.fromObject(object.womenOwned);
+ }
+ if (object.veteranOwned != null) {
+ if (typeof object.veteranOwned !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessIdentity.veteranOwned: object expected");
+ message.veteranOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.fromObject(object.veteranOwned);
+ }
+ if (object.latinoOwned != null) {
+ if (typeof object.latinoOwned !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessIdentity.latinoOwned: object expected");
+ message.latinoOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.fromObject(object.latinoOwned);
+ }
+ if (object.smallBusiness != null) {
+ if (typeof object.smallBusiness !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessIdentity.smallBusiness: object expected");
+ message.smallBusiness = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.fromObject(object.smallBusiness);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BusinessIdentity message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity} message BusinessIdentity
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BusinessIdentity.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.promotionsConsent = options.enums === String ? "PROMOTIONS_CONSENT_UNSPECIFIED" : 0;
+ object.blackOwned = null;
+ object.womenOwned = null;
+ object.veteranOwned = null;
+ object.latinoOwned = null;
+ object.smallBusiness = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.promotionsConsent != null && message.hasOwnProperty("promotionsConsent"))
+ object.promotionsConsent = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent[message.promotionsConsent] === undefined ? message.promotionsConsent : $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent[message.promotionsConsent] : message.promotionsConsent;
+ if (message.blackOwned != null && message.hasOwnProperty("blackOwned"))
+ object.blackOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.toObject(message.blackOwned, options);
+ if (message.womenOwned != null && message.hasOwnProperty("womenOwned"))
+ object.womenOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.toObject(message.womenOwned, options);
+ if (message.veteranOwned != null && message.hasOwnProperty("veteranOwned"))
+ object.veteranOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.toObject(message.veteranOwned, options);
+ if (message.latinoOwned != null && message.hasOwnProperty("latinoOwned"))
+ object.latinoOwned = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.toObject(message.latinoOwned, options);
+ if (message.smallBusiness != null && message.hasOwnProperty("smallBusiness"))
+ object.smallBusiness = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.toObject(message.smallBusiness, options);
+ return object;
+ };
+
+ /**
+ * Converts this BusinessIdentity to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BusinessIdentity.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BusinessIdentity
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BusinessIdentity.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.BusinessIdentity";
+ };
+
+ BusinessIdentity.IdentityAttribute = (function() {
+
+ /**
+ * Properties of an IdentityAttribute.
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @interface IIdentityAttribute
+ * @property {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration|null} [identityDeclaration] IdentityAttribute identityDeclaration
+ */
+
+ /**
+ * Constructs a new IdentityAttribute.
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity
+ * @classdesc Represents an IdentityAttribute.
+ * @implements IIdentityAttribute
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute=} [properties] Properties to set
+ */
+ function IdentityAttribute(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]];
+ }
+
+ /**
+ * IdentityAttribute identityDeclaration.
+ * @member {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration} identityDeclaration
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @instance
+ */
+ IdentityAttribute.prototype.identityDeclaration = 0;
+
+ /**
+ * Creates a new IdentityAttribute instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute} IdentityAttribute instance
+ */
+ IdentityAttribute.create = function create(properties) {
+ return new IdentityAttribute(properties);
+ };
+
+ /**
+ * Encodes the specified IdentityAttribute message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute} message IdentityAttribute message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IdentityAttribute.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.identityDeclaration != null && Object.hasOwnProperty.call(message, "identityDeclaration"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.identityDeclaration);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IdentityAttribute message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IIdentityAttribute} message IdentityAttribute message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IdentityAttribute.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an IdentityAttribute message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute} IdentityAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IdentityAttribute.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.identityDeclaration = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IdentityAttribute message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute} IdentityAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IdentityAttribute.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IdentityAttribute message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IdentityAttribute.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.identityDeclaration != null && message.hasOwnProperty("identityDeclaration"))
+ switch (message.identityDeclaration) {
+ default:
+ return "identityDeclaration: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an IdentityAttribute message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute} IdentityAttribute
+ */
+ IdentityAttribute.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute();
+ switch (object.identityDeclaration) {
+ default:
+ if (typeof object.identityDeclaration === "number") {
+ message.identityDeclaration = object.identityDeclaration;
+ break;
+ }
+ break;
+ case "IDENTITY_DECLARATION_UNSPECIFIED":
+ case 0:
+ message.identityDeclaration = 0;
+ break;
+ case "SELF_IDENTIFIES_AS":
+ case 1:
+ message.identityDeclaration = 1;
+ break;
+ case "DOES_NOT_SELF_IDENTIFY_AS":
+ case 2:
+ message.identityDeclaration = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an IdentityAttribute message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute} message IdentityAttribute
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IdentityAttribute.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.identityDeclaration = options.enums === String ? "IDENTITY_DECLARATION_UNSPECIFIED" : 0;
+ if (message.identityDeclaration != null && message.hasOwnProperty("identityDeclaration"))
+ object.identityDeclaration = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration[message.identityDeclaration] === undefined ? message.identityDeclaration : $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration[message.identityDeclaration] : message.identityDeclaration;
+ return object;
+ };
+
+ /**
+ * Converts this IdentityAttribute to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IdentityAttribute.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IdentityAttribute
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IdentityAttribute.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute";
+ };
+
+ /**
+ * IdentityDeclaration enum.
+ * @name google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration
+ * @enum {number}
+ * @property {number} IDENTITY_DECLARATION_UNSPECIFIED=0 IDENTITY_DECLARATION_UNSPECIFIED value
+ * @property {number} SELF_IDENTIFIES_AS=1 SELF_IDENTIFIES_AS value
+ * @property {number} DOES_NOT_SELF_IDENTIFY_AS=2 DOES_NOT_SELF_IDENTIFY_AS value
+ */
+ IdentityAttribute.IdentityDeclaration = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "IDENTITY_DECLARATION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "SELF_IDENTIFIES_AS"] = 1;
+ values[valuesById[2] = "DOES_NOT_SELF_IDENTIFY_AS"] = 2;
+ return values;
+ })();
+
+ return IdentityAttribute;
+ })();
+
+ /**
+ * PromotionsConsent enum.
+ * @name google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent
+ * @enum {number}
+ * @property {number} PROMOTIONS_CONSENT_UNSPECIFIED=0 PROMOTIONS_CONSENT_UNSPECIFIED value
+ * @property {number} PROMOTIONS_CONSENT_GIVEN=1 PROMOTIONS_CONSENT_GIVEN value
+ * @property {number} PROMOTIONS_CONSENT_DENIED=2 PROMOTIONS_CONSENT_DENIED value
+ */
+ BusinessIdentity.PromotionsConsent = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "PROMOTIONS_CONSENT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PROMOTIONS_CONSENT_GIVEN"] = 1;
+ values[valuesById[2] = "PROMOTIONS_CONSENT_DENIED"] = 2;
+ return values;
+ })();
+
+ return BusinessIdentity;
+ })();
+
+ v1beta.GetBusinessIdentityRequest = (function() {
+
+ /**
+ * Properties of a GetBusinessIdentityRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IGetBusinessIdentityRequest
+ * @property {string|null} [name] GetBusinessIdentityRequest name
+ */
+
+ /**
+ * Constructs a new GetBusinessIdentityRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a GetBusinessIdentityRequest.
+ * @implements IGetBusinessIdentityRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest=} [properties] Properties to set
+ */
+ function GetBusinessIdentityRequest(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]];
+ }
+
+ /**
+ * GetBusinessIdentityRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @instance
+ */
+ GetBusinessIdentityRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetBusinessIdentityRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest} GetBusinessIdentityRequest instance
+ */
+ GetBusinessIdentityRequest.create = function create(properties) {
+ return new GetBusinessIdentityRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetBusinessIdentityRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest} message GetBusinessIdentityRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBusinessIdentityRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetBusinessIdentityRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessIdentityRequest} message GetBusinessIdentityRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBusinessIdentityRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetBusinessIdentityRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest} GetBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBusinessIdentityRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetBusinessIdentityRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest} GetBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBusinessIdentityRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetBusinessIdentityRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetBusinessIdentityRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetBusinessIdentityRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest} GetBusinessIdentityRequest
+ */
+ GetBusinessIdentityRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetBusinessIdentityRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest} message GetBusinessIdentityRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetBusinessIdentityRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetBusinessIdentityRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetBusinessIdentityRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetBusinessIdentityRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetBusinessIdentityRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest";
+ };
+
+ return GetBusinessIdentityRequest;
+ })();
+
+ v1beta.UpdateBusinessIdentityRequest = (function() {
+
+ /**
+ * Properties of an UpdateBusinessIdentityRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IUpdateBusinessIdentityRequest
+ * @property {google.shopping.merchant.accounts.v1beta.IBusinessIdentity|null} [businessIdentity] UpdateBusinessIdentityRequest businessIdentity
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateBusinessIdentityRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateBusinessIdentityRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an UpdateBusinessIdentityRequest.
+ * @implements IUpdateBusinessIdentityRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest=} [properties] Properties to set
+ */
+ function UpdateBusinessIdentityRequest(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]];
+ }
+
+ /**
+ * UpdateBusinessIdentityRequest businessIdentity.
+ * @member {google.shopping.merchant.accounts.v1beta.IBusinessIdentity|null|undefined} businessIdentity
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @instance
+ */
+ UpdateBusinessIdentityRequest.prototype.businessIdentity = null;
+
+ /**
+ * UpdateBusinessIdentityRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @instance
+ */
+ UpdateBusinessIdentityRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateBusinessIdentityRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest} UpdateBusinessIdentityRequest instance
+ */
+ UpdateBusinessIdentityRequest.create = function create(properties) {
+ return new UpdateBusinessIdentityRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateBusinessIdentityRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest} message UpdateBusinessIdentityRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBusinessIdentityRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.businessIdentity != null && Object.hasOwnProperty.call(message, "businessIdentity"))
+ $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.encode(message.businessIdentity, 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateBusinessIdentityRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessIdentityRequest} message UpdateBusinessIdentityRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBusinessIdentityRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateBusinessIdentityRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest} UpdateBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBusinessIdentityRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.businessIdentity = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateBusinessIdentityRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest} UpdateBusinessIdentityRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBusinessIdentityRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateBusinessIdentityRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateBusinessIdentityRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.businessIdentity != null && message.hasOwnProperty("businessIdentity")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.verify(message.businessIdentity);
+ if (error)
+ return "businessIdentity." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateBusinessIdentityRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest} UpdateBusinessIdentityRequest
+ */
+ UpdateBusinessIdentityRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest();
+ if (object.businessIdentity != null) {
+ if (typeof object.businessIdentity !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest.businessIdentity: object expected");
+ message.businessIdentity = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.fromObject(object.businessIdentity);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateBusinessIdentityRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest} message UpdateBusinessIdentityRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateBusinessIdentityRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.businessIdentity = null;
+ object.updateMask = null;
+ }
+ if (message.businessIdentity != null && message.hasOwnProperty("businessIdentity"))
+ object.businessIdentity = $root.google.shopping.merchant.accounts.v1beta.BusinessIdentity.toObject(message.businessIdentity, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateBusinessIdentityRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateBusinessIdentityRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateBusinessIdentityRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateBusinessIdentityRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest";
+ };
+
+ return UpdateBusinessIdentityRequest;
+ })();
+
+ v1beta.BusinessInfoService = (function() {
+
+ /**
+ * Constructs a new BusinessInfoService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a BusinessInfoService
+ * @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 BusinessInfoService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (BusinessInfoService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = BusinessInfoService;
+
+ /**
+ * Creates new BusinessInfoService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfoService
+ * @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 {BusinessInfoService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ BusinessInfoService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessInfoService|getBusinessInfo}.
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfoService
+ * @typedef GetBusinessInfoCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessInfo} [response] BusinessInfo
+ */
+
+ /**
+ * Calls GetBusinessInfo.
+ * @function getBusinessInfo
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfoService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest} request GetBusinessInfoRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessInfoService.GetBusinessInfoCallback} callback Node-style callback called with the error, if any, and BusinessInfo
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(BusinessInfoService.prototype.getBusinessInfo = function getBusinessInfo(request, callback) {
+ return this.rpcCall(getBusinessInfo, $root.google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest, $root.google.shopping.merchant.accounts.v1beta.BusinessInfo, request, callback);
+ }, "name", { value: "GetBusinessInfo" });
+
+ /**
+ * Calls GetBusinessInfo.
+ * @function getBusinessInfo
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfoService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest} request GetBusinessInfoRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.BusinessInfoService|updateBusinessInfo}.
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfoService
+ * @typedef UpdateBusinessInfoCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessInfo} [response] BusinessInfo
+ */
+
+ /**
+ * Calls UpdateBusinessInfo.
+ * @function updateBusinessInfo
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfoService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest} request UpdateBusinessInfoRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessInfoService.UpdateBusinessInfoCallback} callback Node-style callback called with the error, if any, and BusinessInfo
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(BusinessInfoService.prototype.updateBusinessInfo = function updateBusinessInfo(request, callback) {
+ return this.rpcCall(updateBusinessInfo, $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest, $root.google.shopping.merchant.accounts.v1beta.BusinessInfo, request, callback);
+ }, "name", { value: "UpdateBusinessInfo" });
+
+ /**
+ * Calls UpdateBusinessInfo.
+ * @function updateBusinessInfo
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfoService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest} request UpdateBusinessInfoRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return BusinessInfoService;
+ })();
+
+ v1beta.BusinessInfo = (function() {
+
+ /**
+ * Properties of a BusinessInfo.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IBusinessInfo
+ * @property {string|null} [name] BusinessInfo name
+ * @property {google.type.IPostalAddress|null} [address] BusinessInfo address
+ * @property {google.type.IPhoneNumber|null} [phone] BusinessInfo phone
+ * @property {google.shopping.merchant.accounts.v1beta.PhoneVerificationState|null} [phoneVerificationState] BusinessInfo phoneVerificationState
+ * @property {google.shopping.merchant.accounts.v1beta.ICustomerService|null} [customerService] BusinessInfo customerService
+ */
+
+ /**
+ * Constructs a new BusinessInfo.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a BusinessInfo.
+ * @implements IBusinessInfo
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessInfo=} [properties] Properties to set
+ */
+ function BusinessInfo(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]];
+ }
+
+ /**
+ * BusinessInfo name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ BusinessInfo.prototype.name = "";
+
+ /**
+ * BusinessInfo address.
+ * @member {google.type.IPostalAddress|null|undefined} address
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ BusinessInfo.prototype.address = null;
+
+ /**
+ * BusinessInfo phone.
+ * @member {google.type.IPhoneNumber|null|undefined} phone
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ BusinessInfo.prototype.phone = null;
+
+ /**
+ * BusinessInfo phoneVerificationState.
+ * @member {google.shopping.merchant.accounts.v1beta.PhoneVerificationState|null|undefined} phoneVerificationState
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ BusinessInfo.prototype.phoneVerificationState = null;
+
+ /**
+ * BusinessInfo customerService.
+ * @member {google.shopping.merchant.accounts.v1beta.ICustomerService|null|undefined} customerService
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ BusinessInfo.prototype.customerService = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * BusinessInfo _address.
+ * @member {"address"|undefined} _address
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ Object.defineProperty(BusinessInfo.prototype, "_address", {
+ get: $util.oneOfGetter($oneOfFields = ["address"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * BusinessInfo _phone.
+ * @member {"phone"|undefined} _phone
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ Object.defineProperty(BusinessInfo.prototype, "_phone", {
+ get: $util.oneOfGetter($oneOfFields = ["phone"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * BusinessInfo _phoneVerificationState.
+ * @member {"phoneVerificationState"|undefined} _phoneVerificationState
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ Object.defineProperty(BusinessInfo.prototype, "_phoneVerificationState", {
+ get: $util.oneOfGetter($oneOfFields = ["phoneVerificationState"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * BusinessInfo _customerService.
+ * @member {"customerService"|undefined} _customerService
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ */
+ Object.defineProperty(BusinessInfo.prototype, "_customerService", {
+ get: $util.oneOfGetter($oneOfFields = ["customerService"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new BusinessInfo instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessInfo=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessInfo} BusinessInfo instance
+ */
+ BusinessInfo.create = function create(properties) {
+ return new BusinessInfo(properties);
+ };
+
+ /**
+ * Encodes the specified BusinessInfo message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessInfo} message BusinessInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BusinessInfo.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.address != null && Object.hasOwnProperty.call(message, "address"))
+ $root.google.type.PostalAddress.encode(message.address, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.phone != null && Object.hasOwnProperty.call(message, "phone"))
+ $root.google.type.PhoneNumber.encode(message.phone, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.phoneVerificationState != null && Object.hasOwnProperty.call(message, "phoneVerificationState"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phoneVerificationState);
+ if (message.customerService != null && Object.hasOwnProperty.call(message, "customerService"))
+ $root.google.shopping.merchant.accounts.v1beta.CustomerService.encode(message.customerService, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BusinessInfo message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.BusinessInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IBusinessInfo} message BusinessInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BusinessInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BusinessInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessInfo} BusinessInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BusinessInfo.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.BusinessInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.address = $root.google.type.PostalAddress.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.phone = $root.google.type.PhoneNumber.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.phoneVerificationState = reader.int32();
+ break;
+ }
+ case 5: {
+ message.customerService = $root.google.shopping.merchant.accounts.v1beta.CustomerService.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BusinessInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessInfo} BusinessInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BusinessInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BusinessInfo message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BusinessInfo.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.address != null && message.hasOwnProperty("address")) {
+ properties._address = 1;
+ {
+ var error = $root.google.type.PostalAddress.verify(message.address);
+ if (error)
+ return "address." + error;
+ }
+ }
+ if (message.phone != null && message.hasOwnProperty("phone")) {
+ properties._phone = 1;
+ {
+ var error = $root.google.type.PhoneNumber.verify(message.phone);
+ if (error)
+ return "phone." + error;
+ }
+ }
+ if (message.phoneVerificationState != null && message.hasOwnProperty("phoneVerificationState")) {
+ properties._phoneVerificationState = 1;
+ switch (message.phoneVerificationState) {
+ default:
+ return "phoneVerificationState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ }
+ if (message.customerService != null && message.hasOwnProperty("customerService")) {
+ properties._customerService = 1;
+ {
+ var error = $root.google.shopping.merchant.accounts.v1beta.CustomerService.verify(message.customerService);
+ if (error)
+ return "customerService." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BusinessInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.BusinessInfo} BusinessInfo
+ */
+ BusinessInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.BusinessInfo)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.BusinessInfo();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.address != null) {
+ if (typeof object.address !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessInfo.address: object expected");
+ message.address = $root.google.type.PostalAddress.fromObject(object.address);
+ }
+ if (object.phone != null) {
+ if (typeof object.phone !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessInfo.phone: object expected");
+ message.phone = $root.google.type.PhoneNumber.fromObject(object.phone);
+ }
+ switch (object.phoneVerificationState) {
+ default:
+ if (typeof object.phoneVerificationState === "number") {
+ message.phoneVerificationState = object.phoneVerificationState;
+ break;
+ }
+ break;
+ case "PHONE_VERIFICATION_STATE_UNSPECIFIED":
+ case 0:
+ message.phoneVerificationState = 0;
+ break;
+ case "PHONE_VERIFICATION_STATE_VERIFIED":
+ case 1:
+ message.phoneVerificationState = 1;
+ break;
+ case "PHONE_VERIFICATION_STATE_UNVERIFIED":
+ case 2:
+ message.phoneVerificationState = 2;
+ break;
+ }
+ if (object.customerService != null) {
+ if (typeof object.customerService !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.BusinessInfo.customerService: object expected");
+ message.customerService = $root.google.shopping.merchant.accounts.v1beta.CustomerService.fromObject(object.customerService);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BusinessInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.BusinessInfo} message BusinessInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BusinessInfo.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.address != null && message.hasOwnProperty("address")) {
+ object.address = $root.google.type.PostalAddress.toObject(message.address, options);
+ if (options.oneofs)
+ object._address = "address";
+ }
+ if (message.phone != null && message.hasOwnProperty("phone")) {
+ object.phone = $root.google.type.PhoneNumber.toObject(message.phone, options);
+ if (options.oneofs)
+ object._phone = "phone";
+ }
+ if (message.phoneVerificationState != null && message.hasOwnProperty("phoneVerificationState")) {
+ object.phoneVerificationState = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.PhoneVerificationState[message.phoneVerificationState] === undefined ? message.phoneVerificationState : $root.google.shopping.merchant.accounts.v1beta.PhoneVerificationState[message.phoneVerificationState] : message.phoneVerificationState;
+ if (options.oneofs)
+ object._phoneVerificationState = "phoneVerificationState";
+ }
+ if (message.customerService != null && message.hasOwnProperty("customerService")) {
+ object.customerService = $root.google.shopping.merchant.accounts.v1beta.CustomerService.toObject(message.customerService, options);
+ if (options.oneofs)
+ object._customerService = "customerService";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this BusinessInfo to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BusinessInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BusinessInfo
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.BusinessInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BusinessInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.BusinessInfo";
+ };
+
+ return BusinessInfo;
+ })();
+
+ v1beta.GetBusinessInfoRequest = (function() {
+
+ /**
+ * Properties of a GetBusinessInfoRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IGetBusinessInfoRequest
+ * @property {string|null} [name] GetBusinessInfoRequest name
+ */
+
+ /**
+ * Constructs a new GetBusinessInfoRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a GetBusinessInfoRequest.
+ * @implements IGetBusinessInfoRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest=} [properties] Properties to set
+ */
+ function GetBusinessInfoRequest(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]];
+ }
+
+ /**
+ * GetBusinessInfoRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @instance
+ */
+ GetBusinessInfoRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetBusinessInfoRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest} GetBusinessInfoRequest instance
+ */
+ GetBusinessInfoRequest.create = function create(properties) {
+ return new GetBusinessInfoRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetBusinessInfoRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest} message GetBusinessInfoRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBusinessInfoRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetBusinessInfoRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetBusinessInfoRequest} message GetBusinessInfoRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBusinessInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetBusinessInfoRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest} GetBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBusinessInfoRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetBusinessInfoRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest} GetBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBusinessInfoRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetBusinessInfoRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetBusinessInfoRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetBusinessInfoRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest} GetBusinessInfoRequest
+ */
+ GetBusinessInfoRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetBusinessInfoRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest} message GetBusinessInfoRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetBusinessInfoRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetBusinessInfoRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetBusinessInfoRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetBusinessInfoRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetBusinessInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest";
+ };
+
+ return GetBusinessInfoRequest;
+ })();
+
+ v1beta.UpdateBusinessInfoRequest = (function() {
+
+ /**
+ * Properties of an UpdateBusinessInfoRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IUpdateBusinessInfoRequest
+ * @property {google.shopping.merchant.accounts.v1beta.IBusinessInfo|null} [businessInfo] UpdateBusinessInfoRequest businessInfo
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateBusinessInfoRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateBusinessInfoRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an UpdateBusinessInfoRequest.
+ * @implements IUpdateBusinessInfoRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest=} [properties] Properties to set
+ */
+ function UpdateBusinessInfoRequest(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]];
+ }
+
+ /**
+ * UpdateBusinessInfoRequest businessInfo.
+ * @member {google.shopping.merchant.accounts.v1beta.IBusinessInfo|null|undefined} businessInfo
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @instance
+ */
+ UpdateBusinessInfoRequest.prototype.businessInfo = null;
+
+ /**
+ * UpdateBusinessInfoRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @instance
+ */
+ UpdateBusinessInfoRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateBusinessInfoRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest} UpdateBusinessInfoRequest instance
+ */
+ UpdateBusinessInfoRequest.create = function create(properties) {
+ return new UpdateBusinessInfoRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateBusinessInfoRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest} message UpdateBusinessInfoRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBusinessInfoRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.businessInfo != null && Object.hasOwnProperty.call(message, "businessInfo"))
+ $root.google.shopping.merchant.accounts.v1beta.BusinessInfo.encode(message.businessInfo, 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateBusinessInfoRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateBusinessInfoRequest} message UpdateBusinessInfoRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBusinessInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateBusinessInfoRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest} UpdateBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBusinessInfoRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.businessInfo = $root.google.shopping.merchant.accounts.v1beta.BusinessInfo.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateBusinessInfoRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest} UpdateBusinessInfoRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBusinessInfoRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateBusinessInfoRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateBusinessInfoRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.businessInfo != null && message.hasOwnProperty("businessInfo")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.BusinessInfo.verify(message.businessInfo);
+ if (error)
+ return "businessInfo." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateBusinessInfoRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest} UpdateBusinessInfoRequest
+ */
+ UpdateBusinessInfoRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest();
+ if (object.businessInfo != null) {
+ if (typeof object.businessInfo !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest.businessInfo: object expected");
+ message.businessInfo = $root.google.shopping.merchant.accounts.v1beta.BusinessInfo.fromObject(object.businessInfo);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateBusinessInfoRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest} message UpdateBusinessInfoRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateBusinessInfoRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.businessInfo = null;
+ object.updateMask = null;
+ }
+ if (message.businessInfo != null && message.hasOwnProperty("businessInfo"))
+ object.businessInfo = $root.google.shopping.merchant.accounts.v1beta.BusinessInfo.toObject(message.businessInfo, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateBusinessInfoRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateBusinessInfoRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateBusinessInfoRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateBusinessInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest";
+ };
+
+ return UpdateBusinessInfoRequest;
+ })();
+
+ v1beta.CustomerService = (function() {
+
+ /**
+ * Properties of a CustomerService.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface ICustomerService
+ * @property {string|null} [uri] CustomerService uri
+ * @property {string|null} [email] CustomerService email
+ * @property {google.type.IPhoneNumber|null} [phone] CustomerService phone
+ */
+
+ /**
+ * Constructs a new CustomerService.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a CustomerService.
+ * @implements ICustomerService
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.ICustomerService=} [properties] Properties to set
+ */
+ function CustomerService(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]];
+ }
+
+ /**
+ * CustomerService uri.
+ * @member {string|null|undefined} uri
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @instance
+ */
+ CustomerService.prototype.uri = null;
+
+ /**
+ * CustomerService email.
+ * @member {string|null|undefined} email
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @instance
+ */
+ CustomerService.prototype.email = null;
+
+ /**
+ * CustomerService phone.
+ * @member {google.type.IPhoneNumber|null|undefined} phone
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @instance
+ */
+ CustomerService.prototype.phone = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * CustomerService _uri.
+ * @member {"uri"|undefined} _uri
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @instance
+ */
+ Object.defineProperty(CustomerService.prototype, "_uri", {
+ get: $util.oneOfGetter($oneOfFields = ["uri"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * CustomerService _email.
+ * @member {"email"|undefined} _email
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @instance
+ */
+ Object.defineProperty(CustomerService.prototype, "_email", {
+ get: $util.oneOfGetter($oneOfFields = ["email"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * CustomerService _phone.
+ * @member {"phone"|undefined} _phone
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @instance
+ */
+ Object.defineProperty(CustomerService.prototype, "_phone", {
+ get: $util.oneOfGetter($oneOfFields = ["phone"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new CustomerService instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICustomerService=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.CustomerService} CustomerService instance
+ */
+ CustomerService.create = function create(properties) {
+ return new CustomerService(properties);
+ };
+
+ /**
+ * Encodes the specified CustomerService message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CustomerService.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICustomerService} message CustomerService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomerService.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
+ if (message.email != null && Object.hasOwnProperty.call(message, "email"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
+ if (message.phone != null && Object.hasOwnProperty.call(message, "phone"))
+ $root.google.type.PhoneNumber.encode(message.phone, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomerService message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.CustomerService.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.ICustomerService} message CustomerService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomerService.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomerService message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.CustomerService} CustomerService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomerService.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.CustomerService();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.uri = reader.string();
+ break;
+ }
+ case 2: {
+ message.email = reader.string();
+ break;
+ }
+ case 3: {
+ message.phone = $root.google.type.PhoneNumber.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomerService message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.CustomerService} CustomerService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomerService.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomerService message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomerService.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.uri != null && message.hasOwnProperty("uri")) {
+ properties._uri = 1;
+ if (!$util.isString(message.uri))
+ return "uri: string expected";
+ }
+ if (message.email != null && message.hasOwnProperty("email")) {
+ properties._email = 1;
+ if (!$util.isString(message.email))
+ return "email: string expected";
+ }
+ if (message.phone != null && message.hasOwnProperty("phone")) {
+ properties._phone = 1;
+ {
+ var error = $root.google.type.PhoneNumber.verify(message.phone);
+ if (error)
+ return "phone." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CustomerService message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.CustomerService} CustomerService
+ */
+ CustomerService.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.CustomerService)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.CustomerService();
+ if (object.uri != null)
+ message.uri = String(object.uri);
+ if (object.email != null)
+ message.email = String(object.email);
+ if (object.phone != null) {
+ if (typeof object.phone !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.CustomerService.phone: object expected");
+ message.phone = $root.google.type.PhoneNumber.fromObject(object.phone);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomerService message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.CustomerService} message CustomerService
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomerService.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.uri != null && message.hasOwnProperty("uri")) {
+ object.uri = message.uri;
+ if (options.oneofs)
+ object._uri = "uri";
+ }
+ if (message.email != null && message.hasOwnProperty("email")) {
+ object.email = message.email;
+ if (options.oneofs)
+ object._email = "email";
+ }
+ if (message.phone != null && message.hasOwnProperty("phone")) {
+ object.phone = $root.google.type.PhoneNumber.toObject(message.phone, options);
+ if (options.oneofs)
+ object._phone = "phone";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CustomerService to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomerService.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomerService
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.CustomerService
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomerService.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.CustomerService";
+ };
+
+ return CustomerService;
+ })();
+
+ /**
+ * PhoneVerificationState enum.
+ * @name google.shopping.merchant.accounts.v1beta.PhoneVerificationState
+ * @enum {number}
+ * @property {number} PHONE_VERIFICATION_STATE_UNSPECIFIED=0 PHONE_VERIFICATION_STATE_UNSPECIFIED value
+ * @property {number} PHONE_VERIFICATION_STATE_VERIFIED=1 PHONE_VERIFICATION_STATE_VERIFIED value
+ * @property {number} PHONE_VERIFICATION_STATE_UNVERIFIED=2 PHONE_VERIFICATION_STATE_UNVERIFIED value
+ */
+ v1beta.PhoneVerificationState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "PHONE_VERIFICATION_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PHONE_VERIFICATION_STATE_VERIFIED"] = 1;
+ values[valuesById[2] = "PHONE_VERIFICATION_STATE_UNVERIFIED"] = 2;
+ return values;
+ })();
+
+ v1beta.EmailPreferencesService = (function() {
+
+ /**
+ * Constructs a new EmailPreferencesService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an EmailPreferencesService
+ * @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 EmailPreferencesService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (EmailPreferencesService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EmailPreferencesService;
+
+ /**
+ * Creates new EmailPreferencesService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferencesService
+ * @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 {EmailPreferencesService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ EmailPreferencesService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.EmailPreferencesService|getEmailPreferences}.
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferencesService
+ * @typedef GetEmailPreferencesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.EmailPreferences} [response] EmailPreferences
+ */
+
+ /**
+ * Calls GetEmailPreferences.
+ * @function getEmailPreferences
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferencesService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest} request GetEmailPreferencesRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.EmailPreferencesService.GetEmailPreferencesCallback} callback Node-style callback called with the error, if any, and EmailPreferences
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(EmailPreferencesService.prototype.getEmailPreferences = function getEmailPreferences(request, callback) {
+ return this.rpcCall(getEmailPreferences, $root.google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest, $root.google.shopping.merchant.accounts.v1beta.EmailPreferences, request, callback);
+ }, "name", { value: "GetEmailPreferences" });
+
+ /**
+ * Calls GetEmailPreferences.
+ * @function getEmailPreferences
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferencesService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest} request GetEmailPreferencesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.EmailPreferencesService|updateEmailPreferences}.
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferencesService
+ * @typedef UpdateEmailPreferencesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.EmailPreferences} [response] EmailPreferences
+ */
+
+ /**
+ * Calls UpdateEmailPreferences.
+ * @function updateEmailPreferences
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferencesService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest} request UpdateEmailPreferencesRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.EmailPreferencesService.UpdateEmailPreferencesCallback} callback Node-style callback called with the error, if any, and EmailPreferences
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(EmailPreferencesService.prototype.updateEmailPreferences = function updateEmailPreferences(request, callback) {
+ return this.rpcCall(updateEmailPreferences, $root.google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest, $root.google.shopping.merchant.accounts.v1beta.EmailPreferences, request, callback);
+ }, "name", { value: "UpdateEmailPreferences" });
+
+ /**
+ * Calls UpdateEmailPreferences.
+ * @function updateEmailPreferences
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferencesService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest} request UpdateEmailPreferencesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return EmailPreferencesService;
+ })();
+
+ v1beta.EmailPreferences = (function() {
+
+ /**
+ * Properties of an EmailPreferences.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IEmailPreferences
+ * @property {string|null} [name] EmailPreferences name
+ * @property {google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState|null} [newsAndTips] EmailPreferences newsAndTips
+ */
+
+ /**
+ * Constructs a new EmailPreferences.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an EmailPreferences.
+ * @implements IEmailPreferences
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IEmailPreferences=} [properties] Properties to set
+ */
+ function EmailPreferences(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]];
+ }
+
+ /**
+ * EmailPreferences name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @instance
+ */
+ EmailPreferences.prototype.name = "";
+
+ /**
+ * EmailPreferences newsAndTips.
+ * @member {google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState} newsAndTips
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @instance
+ */
+ EmailPreferences.prototype.newsAndTips = 0;
+
+ /**
+ * Creates a new EmailPreferences instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IEmailPreferences=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.EmailPreferences} EmailPreferences instance
+ */
+ EmailPreferences.create = function create(properties) {
+ return new EmailPreferences(properties);
+ };
+
+ /**
+ * Encodes the specified EmailPreferences message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.EmailPreferences.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IEmailPreferences} message EmailPreferences message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EmailPreferences.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.newsAndTips != null && Object.hasOwnProperty.call(message, "newsAndTips"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.newsAndTips);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EmailPreferences message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.EmailPreferences.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IEmailPreferences} message EmailPreferences message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EmailPreferences.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EmailPreferences message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.EmailPreferences} EmailPreferences
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EmailPreferences.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.EmailPreferences();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.newsAndTips = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EmailPreferences message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.EmailPreferences} EmailPreferences
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EmailPreferences.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EmailPreferences message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EmailPreferences.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.newsAndTips != null && message.hasOwnProperty("newsAndTips"))
+ switch (message.newsAndTips) {
+ default:
+ return "newsAndTips: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an EmailPreferences message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.EmailPreferences} EmailPreferences
+ */
+ EmailPreferences.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.EmailPreferences)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.EmailPreferences();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.newsAndTips) {
+ default:
+ if (typeof object.newsAndTips === "number") {
+ message.newsAndTips = object.newsAndTips;
+ break;
+ }
+ break;
+ case "OPT_IN_STATE_UNSPECIFIED":
+ case 0:
+ message.newsAndTips = 0;
+ break;
+ case "OPTED_OUT":
+ case 1:
+ message.newsAndTips = 1;
+ break;
+ case "OPTED_IN":
+ case 2:
+ message.newsAndTips = 2;
+ break;
+ case "UNCONFIRMED":
+ case 3:
+ message.newsAndTips = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EmailPreferences message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.EmailPreferences} message EmailPreferences
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EmailPreferences.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.newsAndTips = options.enums === String ? "OPT_IN_STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.newsAndTips != null && message.hasOwnProperty("newsAndTips"))
+ object.newsAndTips = options.enums === String ? $root.google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState[message.newsAndTips] === undefined ? message.newsAndTips : $root.google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState[message.newsAndTips] : message.newsAndTips;
+ return object;
+ };
+
+ /**
+ * Converts this EmailPreferences to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EmailPreferences.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EmailPreferences
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.EmailPreferences
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EmailPreferences.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.EmailPreferences";
+ };
+
+ /**
+ * OptInState enum.
+ * @name google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState
+ * @enum {number}
+ * @property {number} OPT_IN_STATE_UNSPECIFIED=0 OPT_IN_STATE_UNSPECIFIED value
+ * @property {number} OPTED_OUT=1 OPTED_OUT value
+ * @property {number} OPTED_IN=2 OPTED_IN value
+ * @property {number} UNCONFIRMED=3 UNCONFIRMED value
+ */
+ EmailPreferences.OptInState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "OPT_IN_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "OPTED_OUT"] = 1;
+ values[valuesById[2] = "OPTED_IN"] = 2;
+ values[valuesById[3] = "UNCONFIRMED"] = 3;
+ return values;
+ })();
+
+ return EmailPreferences;
+ })();
+
+ v1beta.GetEmailPreferencesRequest = (function() {
+
+ /**
+ * Properties of a GetEmailPreferencesRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IGetEmailPreferencesRequest
+ * @property {string|null} [name] GetEmailPreferencesRequest name
+ */
+
+ /**
+ * Constructs a new GetEmailPreferencesRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a GetEmailPreferencesRequest.
+ * @implements IGetEmailPreferencesRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest=} [properties] Properties to set
+ */
+ function GetEmailPreferencesRequest(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]];
+ }
+
+ /**
+ * GetEmailPreferencesRequest name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @instance
+ */
+ GetEmailPreferencesRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetEmailPreferencesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest} GetEmailPreferencesRequest instance
+ */
+ GetEmailPreferencesRequest.create = function create(properties) {
+ return new GetEmailPreferencesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetEmailPreferencesRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest} message GetEmailPreferencesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEmailPreferencesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetEmailPreferencesRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest} message GetEmailPreferencesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEmailPreferencesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetEmailPreferencesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest} GetEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEmailPreferencesRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetEmailPreferencesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest} GetEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEmailPreferencesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetEmailPreferencesRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetEmailPreferencesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetEmailPreferencesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest} GetEmailPreferencesRequest
+ */
+ GetEmailPreferencesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetEmailPreferencesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest} message GetEmailPreferencesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetEmailPreferencesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetEmailPreferencesRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetEmailPreferencesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetEmailPreferencesRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetEmailPreferencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest";
+ };
+
+ return GetEmailPreferencesRequest;
+ })();
+
+ v1beta.UpdateEmailPreferencesRequest = (function() {
+
+ /**
+ * Properties of an UpdateEmailPreferencesRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IUpdateEmailPreferencesRequest
+ * @property {google.shopping.merchant.accounts.v1beta.IEmailPreferences|null} [emailPreferences] UpdateEmailPreferencesRequest emailPreferences
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEmailPreferencesRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateEmailPreferencesRequest.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents an UpdateEmailPreferencesRequest.
+ * @implements IUpdateEmailPreferencesRequest
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest=} [properties] Properties to set
+ */
+ function UpdateEmailPreferencesRequest(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]];
+ }
+
+ /**
+ * UpdateEmailPreferencesRequest emailPreferences.
+ * @member {google.shopping.merchant.accounts.v1beta.IEmailPreferences|null|undefined} emailPreferences
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @instance
+ */
+ UpdateEmailPreferencesRequest.prototype.emailPreferences = null;
+
+ /**
+ * UpdateEmailPreferencesRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @instance
+ */
+ UpdateEmailPreferencesRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateEmailPreferencesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest} UpdateEmailPreferencesRequest instance
+ */
+ UpdateEmailPreferencesRequest.create = function create(properties) {
+ return new UpdateEmailPreferencesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateEmailPreferencesRequest message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest} message UpdateEmailPreferencesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateEmailPreferencesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.emailPreferences != null && Object.hasOwnProperty.call(message, "emailPreferences"))
+ $root.google.shopping.merchant.accounts.v1beta.EmailPreferences.encode(message.emailPreferences, 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateEmailPreferencesRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest} message UpdateEmailPreferencesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateEmailPreferencesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateEmailPreferencesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest} UpdateEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateEmailPreferencesRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.emailPreferences = $root.google.shopping.merchant.accounts.v1beta.EmailPreferences.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateEmailPreferencesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest} UpdateEmailPreferencesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateEmailPreferencesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateEmailPreferencesRequest message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateEmailPreferencesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.emailPreferences != null && message.hasOwnProperty("emailPreferences")) {
+ var error = $root.google.shopping.merchant.accounts.v1beta.EmailPreferences.verify(message.emailPreferences);
+ if (error)
+ return "emailPreferences." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateEmailPreferencesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest} UpdateEmailPreferencesRequest
+ */
+ UpdateEmailPreferencesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest)
+ return object;
+ var message = new $root.google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest();
+ if (object.emailPreferences != null) {
+ if (typeof object.emailPreferences !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest.emailPreferences: object expected");
+ message.emailPreferences = $root.google.shopping.merchant.accounts.v1beta.EmailPreferences.fromObject(object.emailPreferences);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateEmailPreferencesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest} message UpdateEmailPreferencesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateEmailPreferencesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.emailPreferences = null;
+ object.updateMask = null;
+ }
+ if (message.emailPreferences != null && message.hasOwnProperty("emailPreferences"))
+ object.emailPreferences = $root.google.shopping.merchant.accounts.v1beta.EmailPreferences.toObject(message.emailPreferences, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateEmailPreferencesRequest to JSON.
+ * @function toJSON
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateEmailPreferencesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateEmailPreferencesRequest
+ * @function getTypeUrl
+ * @memberof google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateEmailPreferencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest";
+ };
+
+ return UpdateEmailPreferencesRequest;
+ })();
+
+ v1beta.HomepageService = (function() {
+
+ /**
+ * Constructs a new HomepageService service.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a HomepageService
+ * @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 HomepageService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (HomepageService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = HomepageService;
+
+ /**
+ * Creates new HomepageService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @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 {HomepageService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ HomepageService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|getHomepage}.
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @typedef GetHomepageCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.Homepage} [response] Homepage
+ */
+
+ /**
+ * Calls GetHomepage.
+ * @function getHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetHomepageRequest} request GetHomepageRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.HomepageService.GetHomepageCallback} callback Node-style callback called with the error, if any, and Homepage
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(HomepageService.prototype.getHomepage = function getHomepage(request, callback) {
+ return this.rpcCall(getHomepage, $root.google.shopping.merchant.accounts.v1beta.GetHomepageRequest, $root.google.shopping.merchant.accounts.v1beta.Homepage, request, callback);
+ }, "name", { value: "GetHomepage" });
+
+ /**
+ * Calls GetHomepage.
+ * @function getHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IGetHomepageRequest} request GetHomepageRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|updateHomepage}.
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @typedef UpdateHomepageCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.Homepage} [response] Homepage
+ */
+
+ /**
+ * Calls UpdateHomepage.
+ * @function updateHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest} request UpdateHomepageRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.HomepageService.UpdateHomepageCallback} callback Node-style callback called with the error, if any, and Homepage
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(HomepageService.prototype.updateHomepage = function updateHomepage(request, callback) {
+ return this.rpcCall(updateHomepage, $root.google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest, $root.google.shopping.merchant.accounts.v1beta.Homepage, request, callback);
+ }, "name", { value: "UpdateHomepage" });
+
+ /**
+ * Calls UpdateHomepage.
+ * @function updateHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUpdateHomepageRequest} request UpdateHomepageRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|claimHomepage}.
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @typedef ClaimHomepageCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.Homepage} [response] Homepage
+ */
+
+ /**
+ * Calls ClaimHomepage.
+ * @function claimHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest} request ClaimHomepageRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.HomepageService.ClaimHomepageCallback} callback Node-style callback called with the error, if any, and Homepage
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(HomepageService.prototype.claimHomepage = function claimHomepage(request, callback) {
+ return this.rpcCall(claimHomepage, $root.google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest, $root.google.shopping.merchant.accounts.v1beta.Homepage, request, callback);
+ }, "name", { value: "ClaimHomepage" });
+
+ /**
+ * Calls ClaimHomepage.
+ * @function claimHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IClaimHomepageRequest} request ClaimHomepageRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.shopping.merchant.accounts.v1beta.HomepageService|unclaimHomepage}.
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @typedef UnclaimHomepageCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.shopping.merchant.accounts.v1beta.Homepage} [response] Homepage
+ */
+
+ /**
+ * Calls UnclaimHomepage.
+ * @function unclaimHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest} request UnclaimHomepageRequest message or plain object
+ * @param {google.shopping.merchant.accounts.v1beta.HomepageService.UnclaimHomepageCallback} callback Node-style callback called with the error, if any, and Homepage
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(HomepageService.prototype.unclaimHomepage = function unclaimHomepage(request, callback) {
+ return this.rpcCall(unclaimHomepage, $root.google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest, $root.google.shopping.merchant.accounts.v1beta.Homepage, request, callback);
+ }, "name", { value: "UnclaimHomepage" });
+
+ /**
+ * Calls UnclaimHomepage.
+ * @function unclaimHomepage
+ * @memberof google.shopping.merchant.accounts.v1beta.HomepageService
+ * @instance
+ * @param {google.shopping.merchant.accounts.v1beta.IUnclaimHomepageRequest} request UnclaimHomepageRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return HomepageService;
+ })();
+
+ v1beta.Homepage = (function() {
+
+ /**
+ * Properties of a Homepage.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @interface IHomepage
+ * @property {string|null} [name] Homepage name
+ * @property {string|null} [uri] Homepage uri
+ * @property {boolean|null} [claimed] Homepage claimed
+ */
+
+ /**
+ * Constructs a new Homepage.
+ * @memberof google.shopping.merchant.accounts.v1beta
+ * @classdesc Represents a Homepage.
+ * @implements IHomepage
+ * @constructor
+ * @param {google.shopping.merchant.accounts.v1beta.IHomepage=} [properties] Properties to set
+ */
+ function Homepage(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]];
+ }
+
+ /**
+ * Homepage name.
+ * @member {string} name
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @instance
+ */
+ Homepage.prototype.name = "";
+
+ /**
+ * Homepage uri.
+ * @member {string|null|undefined} uri
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @instance
+ */
+ Homepage.prototype.uri = null;
+
+ /**
+ * Homepage claimed.
+ * @member {boolean} claimed
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @instance
+ */
+ Homepage.prototype.claimed = false;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Homepage _uri.
+ * @member {"uri"|undefined} _uri
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @instance
+ */
+ Object.defineProperty(Homepage.prototype, "_uri", {
+ get: $util.oneOfGetter($oneOfFields = ["uri"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Homepage instance using the specified properties.
+ * @function create
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IHomepage=} [properties] Properties to set
+ * @returns {google.shopping.merchant.accounts.v1beta.Homepage} Homepage instance
+ */
+ Homepage.create = function create(properties) {
+ return new Homepage(properties);
+ };
+
+ /**
+ * Encodes the specified Homepage message. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Homepage.verify|verify} messages.
+ * @function encode
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IHomepage} message Homepage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Homepage.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.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri);
+ if (message.claimed != null && Object.hasOwnProperty.call(message, "claimed"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.claimed);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Homepage message, length delimited. Does not implicitly {@link google.shopping.merchant.accounts.v1beta.Homepage.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @static
+ * @param {google.shopping.merchant.accounts.v1beta.IHomepage} message Homepage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Homepage.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Homepage message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.shopping.merchant.accounts.v1beta.Homepage} Homepage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Homepage.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.accounts.v1beta.Homepage();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.uri = reader.string();
+ break;
+ }
+ case 3: {
+ message.claimed = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Homepage message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.shopping.merchant.accounts.v1beta.Homepage} Homepage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Homepage.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Homepage message.
+ * @function verify
+ * @memberof google.shopping.merchant.accounts.v1beta.Homepage
+ * @static
+ * @param {Object.